- 17 May, 2012 1 commit
-
-
Antoine Pitrou authored
Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.
-
- 09 May, 2012 1 commit
-
-
Antoine Pitrou authored
-
- 07 May, 2012 1 commit
-
-
Antoine Pitrou authored
Issue #14583: Fix importlib bug when a package's __init__.py would first import one of its modules then raise an error.
-
- 06 May, 2012 1 commit
-
-
Antoine Pitrou authored
-
- 05 May, 2012 1 commit
-
-
Nadeem Vawda authored
-
- 04 May, 2012 4 commits
-
-
Antoine Pitrou authored
-
Brett Cannon authored
-
Brett Cannon authored
-
Brett Cannon authored
This introduces a new function, imp.extension_suffixes(), which is currently undocumented. That is forthcoming once issue #14657 is resolved and how to expose file suffixes is decided.
-
- 29 Apr, 2012 2 commits
-
-
Brett Cannon authored
Thanks to Eric Snow for the patch.
-
Brett Cannon authored
-
- 27 Apr, 2012 2 commits
-
-
Brett Cannon authored
finder instead of using some (now non-existent) implicit finder.
-
Victor Stinner authored
* In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError()
-
- 25 Apr, 2012 1 commit
-
-
Brett Cannon authored
-
- 22 Apr, 2012 1 commit
-
-
Brett Cannon authored
Thanks to Eric Snow for taking an initial stab at the implementation.
-
- 21 Apr, 2012 2 commits
-
-
Brett Cannon authored
-
Brett Cannon authored
-
- 18 Apr, 2012 1 commit
-
-
Benjamin Peterson authored
Being able to overload a sys.module entry during import of a module was broken by this changeset.
-
- 17 Apr, 2012 4 commits
-
-
Brett Cannon authored
-
Brett Cannon authored
or __name__ are not set in globals. Thanks to Stefan Behnel for the bug report.
-
Brian Curtin authored
-
Brett Cannon authored
-
- 16 Apr, 2012 5 commits
-
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Brett Cannon authored
Thanks to Eric Snow for helping with imp.load_module() (previous commit) which led to the removal of a bunch of C code.
-
Brett Cannon authored
-
- 15 Apr, 2012 5 commits
-
-
Brett Cannon authored
__loader__. Since import now sets __loader__ on all modules it creates and imp.reload() already relied on the attribute for modules that import didn't create, the only potential compatibility issue is if people were deleting the attribute on modules and expecting imp.reload() to continue to work.
-
Brett Cannon authored
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.
-
Brett Cannon authored
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.
-
Brett Cannon authored
found in sys.modules.
-
Brett Cannon authored
__import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and thus not segfaulting).
-
- 14 Apr, 2012 3 commits
-
-
Brian Curtin authored
-
Brett Cannon authored
-
Brett Cannon authored
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__().
-
- 18 Mar, 2012 1 commit
-
-
Gregory P. Smith authored
allocating path buffers on the heap instead of the stack.
-
- 16 Mar, 2012 1 commit
-
-
Benjamin Peterson authored
-
- 15 Mar, 2012 2 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
This allows generators that are using yield from to be seen by debuggers. It also kills the f_yieldfrom field on frame objects. Patch mostly from Mark Shannon with a few tweaks by me.
-
- 22 Feb, 2012 1 commit
-
-
Antoine Pitrou authored
-