mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #20383: Introduce importlib.util.module_from_spec().
Along the way, dismantle importlib._bootstrap._SpecMethods as it was no longer relevant and constructing the new function required partially dismantling the class anyway.
This commit is contained in:
parent
c8f0d6ebfc
commit
2a17bde930
17 changed files with 4536 additions and 4736 deletions
|
@ -126,7 +126,7 @@ class Loader(metaclass=abc.ABCMeta):
|
|||
create_module() is optional.
|
||||
|
||||
"""
|
||||
# By default, defer to _SpecMethods.create() for the new module.
|
||||
# By default, defer to default semantics for the new module.
|
||||
return None
|
||||
|
||||
# We don't define exec_module() here since that would break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue