This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stefanchrobot
Recipients docs@python, stefanchrobot
Date 2013-05-08.21:27:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368048430.97.0.564979420355.issue17938@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/3/reference/simple_stmts.html#the-import-statement

After the "Examples", there's a duplicated paragraph:

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 from form with * may only occur in a module scope. Attempting to use it in class or function definitions will raise a SyntaxError.

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 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 SyntaxError.
History
Date User Action Args
2013-05-08 21:27:11stefanchrobotsetrecipients: + stefanchrobot, docs@python
2013-05-08 21:27:10stefanchrobotsetmessageid: <1368048430.97.0.564979420355.issue17938@psf.upfronthosting.co.za>
2013-05-08 21:27:10stefanchrobotlinkissue17938 messages
2013-05-08 21:27:10stefanchrobotcreate