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
441d945e
Commit
441d945e
authored
Apr 20, 2018
by
Brett Cannon
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that __path__ can't be just any value (GH-6554)
parent
a8c34246
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Doc/reference/import.rst
Doc/reference/import.rst
+1
-2
Misc/NEWS.d/next/Documentation/2018-04-20-14-09-36.bpo-33276.rA1z_3.rst
...xt/Documentation/2018-04-20-14-09-36.bpo-33276.rA1z_3.rst
+1
-0
No files found.
Doc/reference/import.rst
View file @
441d945e
...
...
@@ -616,8 +616,7 @@ the module.
module.__path__
---------------
By definition, if a module has a ``__path__`` attribute, it is a package,
regardless of its value.
By definition, if a module has a ``__path__`` attribute, it is a package.
A package'
s
``
__path__
``
attribute
is
used
during
imports
of
its
subpackages
.
Within
the
import
machinery
,
it
functions
much
the
same
as
:
data
:`
sys
.
path
`,
...
...
Misc/NEWS.d/next/Documentation/2018-04-20-14-09-36.bpo-33276.rA1z_3.rst
0 → 100644
View file @
441d945e
Clarify that the ``__path__`` attribute on modules cannot be just any value.
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