mirror of
https://github.com/python/cpython.git
synced 2025-11-22 19:46:48 +00:00
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
This commit is contained in:
parent
6d9c1b1617
commit
5f39706b07
4 changed files with 7 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ language using this mechanism:
|
||||||
| division | 2.2.0a2 | 3.0 | :pep:`238`: |
|
| division | 2.2.0a2 | 3.0 | :pep:`238`: |
|
||||||
| | | | *Changing the Division Operator* |
|
| | | | *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* |
|
| | | | *Imports: Multi-Line and Absolute/Relative* |
|
||||||
+------------------+-------------+--------------+---------------------------------------------+
|
+------------------+-------------+--------------+---------------------------------------------+
|
||||||
| with_statement | 2.5.0a1 | 2.6 | :pep:`343`: |
|
| with_statement | 2.5.0a1 | 2.6 | :pep:`343`: |
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ division = _Feature((2, 2, 0, "alpha", 2),
|
||||||
CO_FUTURE_DIVISION)
|
CO_FUTURE_DIVISION)
|
||||||
|
|
||||||
absolute_import = _Feature((2, 5, 0, "alpha", 1),
|
absolute_import = _Feature((2, 5, 0, "alpha", 1),
|
||||||
(2, 7, 0, "alpha", 0),
|
(3, 0, 0, "alpha", 0),
|
||||||
CO_FUTURE_ABSOLUTE_IMPORT)
|
CO_FUTURE_ABSOLUTE_IMPORT)
|
||||||
|
|
||||||
with_statement = _Feature((2, 5, 0, "alpha", 1),
|
with_statement = _Feature((2, 5, 0, "alpha", 1),
|
||||||
|
|
|
||||||
|
|
@ -544,6 +544,7 @@ Ken Manheimer
|
||||||
Vladimir Marangozov
|
Vladimir Marangozov
|
||||||
David Marek
|
David Marek
|
||||||
Doug Marien
|
Doug Marien
|
||||||
|
Sven Marnach
|
||||||
Alex Martelli
|
Alex Martelli
|
||||||
Anthony Martin
|
Anthony Martin
|
||||||
Sébastien Martini
|
Sébastien Martini
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ What's New in Python 2.7.4
|
||||||
Core and Builtins
|
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 #14761: Fix potential leak on an error case in the import machinery.
|
||||||
|
|
||||||
- Issue #14699: Fix calling the classmethod descriptor directly.
|
- Issue #14699: Fix calling the classmethod descriptor directly.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue