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
7c5ba513
Commit
7c5ba513
authored
May 19, 2012
by
Petri Lehtinen
Browse files
Options
Browse Files
Download
Plain Diff
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
parents
ed1183db
079bfc96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Doc/library/__future__.rst
Doc/library/__future__.rst
+1
-1
Lib/__future__.py
Lib/__future__.py
+1
-1
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Doc/library/__future__.rst
View file @
7c5ba513
...
@@ -75,7 +75,7 @@ language using this mechanism:
...
@@ -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`: |
...
...
Lib/__future__.py
View file @
7c5ba513
...
@@ -114,7 +114,7 @@ division = _Feature((2, 2, 0, "alpha", 2),
...
@@ -114,7 +114,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
),
...
...
Misc/NEWS
View file @
7c5ba513
...
@@ -10,6 +10,10 @@ What's New in Python 3.3.0 Alpha 4?
...
@@ -10,6 +10,10 @@ What's New in Python 3.3.0 Alpha 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 #9260: A finer-grained import lock. Most of the import sequence
- Issue #9260: A finer-grained import lock. Most of the import sequence
now uses per-module locks rather than the global import lock, eliminating
now uses per-module locks rather than the global import lock, eliminating
well-known issues with threads and imports.
well-known issues with threads and imports.
...
...
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