Browse Source
Issue #23014: Make importlib.abc.Loader.create_module() required when
Issue #23014: Make importlib.abc.Loader.create_module() required when
importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None).pull/9921/head
11 changed files with 2440 additions and 2347 deletions
-
24Doc/library/importlib.rst
-
8Doc/reference/import.rst
-
8Doc/whatsnew/3.5.rst
-
14Lib/importlib/_bootstrap.py
-
3Lib/importlib/abc.py
-
3Lib/test/test_importlib/import_/test___loader__.py
-
4Lib/test/test_importlib/import_/test_api.py
-
3Lib/test/test_importlib/test_spec.py
-
12Lib/test/test_importlib/test_util.py
-
3Lib/test/test_pkgutil.py
-
4705Python/importlib.h
4705
Python/importlib.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue