Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
079bfc96
Commit
079bfc96
authored
May 19, 2012
by
Petri Lehtinen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
parent
6709b7d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
Doc/library/__future__.rst
Doc/library/__future__.rst
+1
-1
Lib/__future__.py
Lib/__future__.py
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Doc/library/__future__.rst
View file @
079bfc96
...
...
@@ -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`: |
...
...
Lib/__future__.py
View file @
079bfc96
...
...
@@ -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
),
...
...
Misc/ACKS
View file @
079bfc96
...
...
@@ -598,6 +598,7 @@ Ken Manheimer
Vladimir Marangozov
David Marek
Doug Marien
Sven Marnach
Alex Martelli
Anthony Martin
Owen Martin
...
...
Misc/NEWS
View file @
079bfc96
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment