Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 955382c

Browse files
committed
#17938: remove duplicate paragraphs.
1 parent ce82d57 commit 955382c

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

Doc/reference/simple_stmts.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -737,22 +737,6 @@ in the module's namespace which do not begin with an underscore character
737737
to avoid accidentally exporting items that are not part of the API (such as
738738
library 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-
756740
The :keyword:`from` form with ``*`` may only occur in a module scope. The wild
757741
card form of import --- ``import *`` --- is only allowed at the module level.
758742
Attempting to use it in class or function definitions will raise a

0 commit comments

Comments
 (0)