| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
the file suffix's case into account, even when doing a case-sensitive
import.
|
| |
|
|
|
|
|
| |
Being able to overload a sys.module entry during import of a module was broken
by this changeset.
|
|
|
|
|
|
|
| |
in importlib.
Thanks to PJE for pointing out the issue and Nick Coghlan for filing
the bug.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
rewriting functionality in pure Python.
To start, imp.new_module() has been rewritten in pure Python, put into
importlib (privately) and then publicly exposed in imp.
|
|
|
|
|
|
|
|
|
|
|
|
| |
of sys.modules when possible.
This is being done for two reasons. One is to gain a little bit of
performance by skipping an unnecessary dict lookup in sys.modules. But
the other (and main) reason is to be a little bit more clear in how
things should work from the perspective of import's interactions with
loaders. Otherwise loaders can easily forget to return the module even
though PEP 302 explicitly states they are expected to return the module
they loaded.
|
|
|
|
|
| |
__import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and
thus not segfaulting).
|
| |
|
|
importlib._bootstrap is now frozen into Python/importlib.h and stored
as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen
code along with sys and imp and then uses _frozen_importlib._install()
to set builtins.__import__() w/ _frozen_importlib.__import__().
|