Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1fbb773c
Commit
1fbb773c
authored
May 09, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#17938: merge with 3.3.
parents
79ec9f0e
955382ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
Doc/reference/simple_stmts.rst
Doc/reference/simple_stmts.rst
+0
-16
No files found.
Doc/reference/simple_stmts.rst
View file @
1fbb773c
...
...
@@ -737,22 +737,6 @@ in the module's namespace which do not begin with an underscore character
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment