PEP 0328: Absolute imports are *not* enabled in Python 2.7
PEP 3147: Temporarily fix a non-standard header
This commit is contained in:
parent
70a15c9282
commit
439c3fbfa0
|
@ -7,7 +7,7 @@ Status: Final
|
|||
Type: Standards Track
|
||||
Content-Type: text/x-rst
|
||||
Created: 21-Dec-2003
|
||||
Python-Version: 2.4, 2,5, 2.6, 2.7
|
||||
Python-Version: 2.4, 2,5, 2.6
|
||||
Post-History: 8-Mar-2004
|
||||
|
||||
|
||||
|
@ -43,9 +43,7 @@ In Python 2.5, you must enable the new absolute import behavior with ::
|
|||
You may use relative imports freely. In Python 2.6, any ``import``
|
||||
statement that results in an intra-package import will raise
|
||||
``DeprecationWarning`` (this also applies to ``from <> import`` that
|
||||
fails to use the relative import syntax). In Python 2.7, ``import`` will
|
||||
always be an absolute import (and the ``__future__`` directive will no
|
||||
longer be needed).
|
||||
fails to use the relative import syntax).
|
||||
|
||||
|
||||
Rationale for Parentheses
|
||||
|
|
|
@ -9,6 +9,7 @@ Content-Type: text/x-rst
|
|||
Created: 2009-12-16
|
||||
Python-Version: 3.2
|
||||
Post-History: 2010-01-30, 2010-02-25, 2010-03-03, 2010-04-12
|
||||
|
||||
Accepted: http://mail.python.org/pipermail/python-dev/2010-April/099414.html
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue