mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #18955: clarify what is removed by importlib.util.module_for_loader.
This commit is contained in:
parent
92ed89081e
commit
a87e31ca52
1 changed files with 3 additions and 3 deletions
|
@ -975,9 +975,9 @@ an :term:`importer`.
|
||||||
reloading.
|
reloading.
|
||||||
|
|
||||||
If an exception is raised by the decorated method and a module was added to
|
If an exception is raised by the decorated method and a module was added to
|
||||||
:data:`sys.modules` it will be removed to prevent a partially initialized
|
:data:`sys.modules`, then the module will be removed to prevent a partially
|
||||||
module from being in left in :data:`sys.modules`. If the module was already
|
initialized module from being in left in :data:`sys.modules`. If the module
|
||||||
in :data:`sys.modules` then it is left alone.
|
was already in :data:`sys.modules` then it is left alone.
|
||||||
|
|
||||||
.. versionchanged:: 3.3
|
.. versionchanged:: 3.3
|
||||||
:attr:`__loader__` and :attr:`__package__` are automatically set
|
:attr:`__loader__` and :attr:`__package__` are automatically set
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue