mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-101100: Consolidate documentation on ModuleType
attributes (#124709)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
7a303fc78a
commit
3024b16d51
23 changed files with 379 additions and 344 deletions
|
@ -585,8 +585,9 @@ as the main module of a Python application must always use absolute imports.
|
|||
Packages in Multiple Directories
|
||||
--------------------------------
|
||||
|
||||
Packages support one more special attribute, :attr:`__path__`. This is
|
||||
initialized to be a list containing the name of the directory holding the
|
||||
Packages support one more special attribute, :attr:`~module.__path__`. This is
|
||||
initialized to be a :term:`sequence` of strings containing the name of the
|
||||
directory holding the
|
||||
package's :file:`__init__.py` before the code in that file is executed. This
|
||||
variable can be modified; doing so affects future searches for modules and
|
||||
subpackages contained in the package.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue