]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #19698: Remove exec_module() from the built-in and extension
authorBrett Cannon <brett@python.org>
Fri, 29 Nov 2013 16:00:11 +0000 (11:00 -0500)
committerBrett Cannon <brett@python.org>
Fri, 29 Nov 2013 16:00:11 +0000 (11:00 -0500)
commitd2476c6e4bfa0666343643277e54f8d89015cded
tree9dbc0abe44bc8f8be91d682580b51e250c091dfe
parent0e90e99188d6fb54c3f5b31a0488318d9c38309d
Issue #19698: Remove exec_module() from the built-in and extension
module loaders.

Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.
Lib/importlib/_bootstrap.py
Lib/test/test_importlib/builtin/test_loader.py
Lib/test/test_importlib/extension/test_loader.py
Misc/NEWS
Python/importlib.h