File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -737,22 +737,6 @@ in the module's namespace which do not begin with an underscore character
737737to avoid accidentally exporting items that are not part of the API (such as
738738library modules which were imported and used within the module).
739739
740- The :keyword: `from ` form with ``* `` may only occur in a module scope.
741- Attempting to use it in class or function definitions will raise a
742- :exc: `SyntaxError `.
743-
744- .. index :: single: __all__ (optional module attribute)
745-
746- The *public names * defined by a module are determined by checking the module's
747- namespace for a variable named ``__all__ ``; if defined, it must be a sequence
748- of strings which are names defined or imported by that module. The names
749- given in ``__all__ `` are all considered public and are required to exist. If
750- ``__all__ `` is not defined, the set of public names includes all names found
751- in the module's namespace which do not begin with an underscore character
752- (``'_' ``). ``__all__ `` should contain the entire public API. It is intended
753- to avoid accidentally exporting items that are not part of the API (such as
754- library modules which were imported and used within the module).
755-
756740The :keyword: `from ` form with ``* `` may only occur in a module scope. The wild
757741card form of import --- ``import * `` --- is only allowed at the module level.
758742Attempting to use it in class or function definitions will raise a
You can’t perform that action at this time.
0 commit comments