Commit f519523f authored by Guido van Rossum's avatar Guido van Rossum

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.)
parent 3432829e
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment