[Python-3000-checkins] r67548 - python/branches/py3k/Doc/whatsnew/3.0.rst

guido.van.rossum python-3000-checkins at python.org
Fri Dec 5 06:49:13 CET 2008


Author: guido.van.rossum
Date: Fri Dec  5 06:49:12 2008
New Revision: 67548

Log:
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.)


Modified:
   python/branches/py3k/Doc/whatsnew/3.0.rst

Modified: python/branches/py3k/Doc/whatsnew/3.0.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.0.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.0.rst	Fri Dec  5 06:49:12 2008
@@ -457,10 +457,9 @@
 * 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.


More information about the Python-3000-checkins mailing list