summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.0.rst
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2008-12-05 05:49:12 (GMT)
committerGuido van Rossum <guido@python.org>2008-12-05 05:49:12 (GMT)
commitf519523f4781357973cfa9a70e142a167feb88f8 (patch)
tree7422612702277a6d6f0332454e7e9703665b7afe /Doc/whatsnew/3.0.rst
parent3432829ea0f0168c8665bd0166b24e52d7ef96bb (diff)
downloadcpython-f519523f4781357973cfa9a70e142a167feb88f8.zip
cpython-f519523f4781357973cfa9a70e142a167feb88f8.tar.gz
cpython-f519523f4781357973cfa9a70e142a167feb88f8.tar.bz2
Tweak verbiage and markup for relative/absolute import. Backport candidate.
(I guess *all* changes to this file should be backported to the 3.0 branch.)
Diffstat (limited to 'Doc/whatsnew/3.0.rst')
-rw-r--r--Doc/whatsnew/3.0.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index 734d3e9..a5f8f8f 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -457,10 +457,9 @@ Removed Syntax
* The :keyword:`from` *module* :keyword:`import` ``*`` syntax is only
allowed at the module level, no longer inside functions.
-* The only acceptable syntaxes for relative imports are :keyword:`from`
- ``.`` :keyword:`import` *name* or
- :keyword:`from` ``.module`` :keyword:`import` *name*.
- :keyword:`import` forms not starting with ``.`` are always
+* The only acceptable syntax for relative imports is :keyword:`from`
+ ``.`` [*module*] :keyword:`import` *name*.
+ All :keyword:`import` forms not starting with ``.`` are
interpreted as absolute imports. (:pep:`0328`)
* Classic classes are gone.