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

Skip to content

Commit d0c4ef1

Browse files
committed
Issue #22242: Try to make some import-related loader details clearer.
Thanks to Jon Poler for pointing this out.
1 parent 85e7066 commit d0c4ef1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/reference/import.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ import machinery will create the new module itself.
459459

460460
* If loading fails, the loader must remove any modules it has inserted
461461
into :data:`sys.modules`, but it must remove **only** the failing
462-
module, and only if the loader itself has loaded it explicitly.
462+
module(s), and only if the loader itself has loaded the module(s)
463+
explicitly.
463464

464465
Module spec
465466
-----------

0 commit comments

Comments
 (0)