]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-119668: expose importlib.machinery.NamespacePath (#119669)
authorFilipe Laíns <lains@riseup.net>
Sat, 1 Nov 2025 00:39:48 +0000 (00:39 +0000)
committerGitHub <noreply@github.com>
Sat, 1 Nov 2025 00:39:48 +0000 (00:39 +0000)
commitede5693be1cefb859522b246897b6835c87ed6d9
treed7e2da876c60202ac8e5c02837e4f84d64661000
parenta17c57eee5b5cc81390750d07e4800b19c0c3084
GH-119668: expose importlib.machinery.NamespacePath (#119669)

* GH-119668: expose importlib.NamespacePath

Signed-off-by: Filipe Laíns <lains@riseup.net>
* add news

Signed-off-by: Filipe Laíns <lains@riseup.net>
* add to docs

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Apply suggestions from code review

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Fix news (importlib.NamespacePath > importlib.machinery.NamespacePath)

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Link to module.__path__ in NamespacePath docs

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Mention the path argument in the documentation

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Simplify docs text

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Highlight argument names in docs text

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Lib/importlib/_bootstrap_external.py

Co-authored-by: Brett Cannon <brett@python.org>
* Rewrite NamespacePath's doc

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Specify path_finder's type in the NamespacePath docstring

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Fix doc tests

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Apply suggestions from code review

Co-authored-by: Barry Warsaw <barry@python.org>
* Fix doc lint

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Doc/library/importlib.rst

Co-authored-by: Brett Cannon <brett@python.org>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Barry Warsaw <barry@python.org>
Doc/library/importlib.rst
Lib/importlib/_bootstrap_external.py
Lib/importlib/machinery.py
Misc/NEWS.d/next/Library/2024-05-28-17-14-30.gh-issue-119668.RrIGpn.rst [new file with mode: 0644]