mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Issue #22242: Try to make some import-related loader details clearer.
Thanks to Jon Poler for pointing this out.
This commit is contained in:
parent
85e7066278
commit
d0c4ef175b
1 changed files with 2 additions and 1 deletions
|
|
@ -459,7 +459,8 @@ import machinery will create the new module itself.
|
|||
|
||||
* If loading fails, the loader must remove any modules it has inserted
|
||||
into :data:`sys.modules`, but it must remove **only** the failing
|
||||
module, and only if the loader itself has loaded it explicitly.
|
||||
module(s), and only if the loader itself has loaded the module(s)
|
||||
explicitly.
|
||||
|
||||
Module spec
|
||||
-----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue