Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a87e31c

Browse files
committed
Issue #18955: clarify what is removed by importlib.util.module_for_loader.
1 parent 92ed890 commit a87e31c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/importlib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -975,9 +975,9 @@ an :term:`importer`.
975975
reloading.
976976

977977
If an exception is raised by the decorated method and a module was added to
978-
:data:`sys.modules` it will be removed to prevent a partially initialized
979-
module from being in left in :data:`sys.modules`. If the module was already
980-
in :data:`sys.modules` then it is left alone.
978+
:data:`sys.modules`, then the module will be removed to prevent a partially
979+
initialized module from being in left in :data:`sys.modules`. If the module
980+
was already in :data:`sys.modules` then it is left alone.
981981

982982
.. versionchanged:: 3.3
983983
:attr:`__loader__` and :attr:`__package__` are automatically set

0 commit comments

Comments
 (0)