[Python-checkins] r70600 - python/branches/py3k/Doc/reference/simple_stmts.rst
python-checkins at python.org
Wed Mar 25 22:50:44 CET 2009
Date: Wed Mar 25 22:50:43 2009
New Revision: 70600
wild card import is only allowed at the module level
--- python/branches/py3k/Doc/reference/simple_stmts.rst (original)
+++ python/branches/py3k/Doc/reference/simple_stmts.rst Wed Mar 25 22:50:43 2009
@@ -794,10 +794,10 @@
accidentally exporting items that are not part of the API (such as library
modules which were imported and used within the module).
-The :keyword:`from` form with ``*`` may only occur in a module scope. If the
-wild card form of import --- ``import *`` --- is used in a function and the
-function contains or is a nested block with free variables, the compiler will
-raise a :exc:`SyntaxError`.
+The :keyword:`from` form with ``*`` may only occur in a module scope. The wild
+card form of import --- ``import *`` --- is only allowed at the module level.
+Attempting to use it in class for function definitions will raise a
single: relative; import
More information about the Python-checkins