…importlib examples (pythonGH-14723) Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module(). Thanks to Benjamin Mintz for finding the bug. https://bugs.python.org/issue37521 (cherry picked from commit 0827064) Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
|
@brettcannon: Status check is done, and it's a success ✅ . |
|
@brettcannon: Status check is done, and it's a success ✅ . |
Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module().
Thanks to Benjamin Mintz for finding the bug.
https://bugs.python.org/issue37521
(cherry picked from commit 0827064)
Co-authored-by: Brett Cannon 54418+brettcannon@users.noreply.github.com
https://bugs.python.org/issue37521