mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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
47fa3f44ef
commit
aa4da1e468
22 changed files with 370 additions and 335 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