summaryrefslogtreecommitdiffstats
path: root/Doc/reference/simple_stmts.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-25 21:50:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-25 21:50:43 (GMT)
commit9611b5ef75446598b8fbd26016fa9cf20548291c (patch)
treea68d8ed51f70ed24f03ca66b9d4b50df2dfa2456 /Doc/reference/simple_stmts.rst
parent0468df3d33cd02ad693227a61995b78f35ab4384 (diff)
downloadcpython-9611b5ef75446598b8fbd26016fa9cf20548291c.zip
cpython-9611b5ef75446598b8fbd26016fa9cf20548291c.tar.gz
cpython-9611b5ef75446598b8fbd26016fa9cf20548291c.tar.bz2
wild card import is only allowed at the module level
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r--Doc/reference/simple_stmts.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index e6fa6cd..4be9875 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -794,10 +794,10 @@ namespace which do not begin with an underscore character (``'_'``).
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
+:exc:`SyntaxError`.
.. index::
single: relative; import