]> granicus.if.org Git - python/commitdiff
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
authorPetri Lehtinen <petri@digip.org>
Sat, 19 May 2012 15:34:06 +0000 (18:34 +0300)
committerPetri Lehtinen <petri@digip.org>
Sat, 19 May 2012 15:36:33 +0000 (18:36 +0300)
Doc/library/__future__.rst
Lib/__future__.py
Misc/ACKS
Misc/NEWS

index 0acccc591b1750dc51a1e218094a366dbcaad087..72f2963a2cd0d9591606c6941dd59d1d71167ca6 100644 (file)
@@ -75,7 +75,7 @@ language using this mechanism:
 | division         | 2.2.0a2     | 3.0          | :pep:`238`:                                 |
 |                  |             |              | *Changing the Division Operator*            |
 +------------------+-------------+--------------+---------------------------------------------+
-| absolute_import  | 2.5.0a1     | 2.7          | :pep:`328`:                                 |
+| absolute_import  | 2.5.0a1     | 3.0          | :pep:`328`:                                 |
 |                  |             |              | *Imports: Multi-Line and Absolute/Relative* |
 +------------------+-------------+--------------+---------------------------------------------+
 | with_statement   | 2.5.0a1     | 2.6          | :pep:`343`:                                 |
index 8f8a490f297aaa0a835c724ebf80e71a129808ef..3b2d5ecb92abb11cd1cbe63ceb1081637ae746ec 100644 (file)
@@ -114,7 +114,7 @@ division = _Feature((2, 2, 0, "alpha", 2),
                     CO_FUTURE_DIVISION)
 
 absolute_import = _Feature((2, 5, 0, "alpha", 1),
-                           (2, 7, 0, "alpha", 0),
+                           (3, 0, 0, "alpha", 0),
                            CO_FUTURE_ABSOLUTE_IMPORT)
 
 with_statement = _Feature((2, 5, 0, "alpha", 1),
index d8ffe35ea21375944c19431099ffca8d5ffdc6cc..bea7eba0c540269c77fb53acf59452e9b6c72529 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -598,6 +598,7 @@ Ken Manheimer
 Vladimir Marangozov
 David Marek
 Doug Marien
+Sven Marnach
 Alex Martelli
 Anthony Martin
 Owen Martin
index ead1bbf26b8bf05b066311ff97a0fcb93e88abe1..4bc3d1bea1199227c8c22889532755831633772d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,10 @@ What's New in Python 3.2.4
 Core and Builtins
 -----------------
 
+- Issue #14494: Fix __future__.py and its documentation to note that
+  absolute imports are the default behavior in 3.0 instead of 2.7.
+  Patch by Sven Marnach.
+
 - Issue #14761: Fix potential leak on an error case in the import machinery.
 
 - Issue #14699: Fix calling the classmethod descriptor directly.