[Python-checkins] cpython (3.3): #17938: remove duplicate paragraphs.
ezio.melotti
python-checkins at python.org
Thu May 9 14:34:21 CEST 2013
http://hg.python.org/cpython/rev/844c6442a39e
changeset: 83697:844c6442a39e
branch: 3.3
parent: 83695:dee0a2dea11e
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Thu May 09 15:33:53 2013 +0300
summary:
#17938: remove duplicate paragraphs.
files:
Doc/reference/simple_stmts.rst | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -737,22 +737,6 @@
to avoid 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.
-Attempting to use it in class or function definitions will raise a
-:exc:`SyntaxError`.
-
-.. index:: single: __all__ (optional module attribute)
-
-The *public names* defined by a module are determined by checking the module's
-namespace for a variable named ``__all__``; if defined, it must be a sequence
-of strings which are names defined or imported by that module. The names
-given in ``__all__`` are all considered public and are required to exist. If
-``__all__`` is not defined, the set of public names includes all names found
-in the module's namespace which do not begin with an underscore character
-(``'_'``). ``__all__`` should contain the entire public API. It is intended
-to avoid 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. The wild
card form of import --- ``import *`` --- is only allowed at the module level.
Attempting to use it in class or function definitions will raise a
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list