]> granicus.if.org Git - python/commitdiff
Tweak verbiage and markup for relative/absolute import. Backport candidate.
authorGuido van Rossum <guido@python.org>
Fri, 5 Dec 2008 05:49:12 +0000 (05:49 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 5 Dec 2008 05:49:12 +0000 (05:49 +0000)
(I guess *all* changes to this file should be backported to the 3.0 branch.)

Doc/whatsnew/3.0.rst

index 734d3e92ad6b69b5f1eb375ec66df649a9b62464..a5f8f8f11ab060a0491bff2c743e2f34ef9c257c 100644 (file)
@@ -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.