Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update importlib.h | Brett Cannon | 2012-04-22 | 1 | -2967/+2967 | |
| | ||||||
* | Have importlib look for pre-existing path separators when joining | Brett Cannon | 2012-04-22 | 1 | -2977/+2981 | |
| | | | | paths. | |||||
* | Don't worry about moving imp.get_tag() over to Lib/imp.py. | Brett Cannon | 2012-04-21 | 1 | -3061/+3064 | |
| | ||||||
* | Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py. | Brett Cannon | 2012-04-21 | 1 | -3134/+3140 | |
| | ||||||
* | Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py. | Brett Cannon | 2012-04-21 | 1 | -2880/+2955 | |
| | ||||||
* | Make path manipulation more robust for platforms with alternative path | Brett Cannon | 2012-04-21 | 1 | -3014/+3047 | |
| | | | | separators. | |||||
* | Issue #13959: Keep imp.get_magic() in C code, but cache in importlib | Brett Cannon | 2012-04-20 | 1 | -1498/+1503 | |
| | | | | | | for performance. While get_magic() could move to Lib/imp.py, having to support PyImport_GetMagicNumber() would lead to equal, if not more, C code than sticking with the status quo. | |||||
* | Issue #14581: Windows users are allowed to import modules w/o taking | Brett Cannon | 2012-04-20 | 1 | -898/+916 | |
| | | | | | the file suffix's case into account, even when doing a case-sensitive import. | |||||
* | update importlib... | Benjamin Peterson | 2012-04-18 | 1 | -885/+891 | |
| | ||||||
* | rollback 005fd1fe31ab (see #14609 and #14582) | Benjamin Peterson | 2012-04-18 | 1 | -467/+463 | |
| | | | | | Being able to overload a sys.module entry during import of a module was broken by this changeset. | |||||
* | Issue #12599: Be more strict in accepting None vs. a false-like object | Brett Cannon | 2012-04-18 | 1 | -1201/+1202 | |
| | | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug. | |||||
* | Avoid compiler warning due to stray \x00 | Antoine Pitrou | 2012-04-16 | 1 | -1/+1 | |
| | ||||||
* | Try to get hg to treat importlib.h as binary. | Brett Cannon | 2012-04-15 | 1 | -0/+1 | |
| | ||||||
* | Update importlib.h | Brett Cannon | 2012-04-15 | 1 | -2616/+2616 | |
| | ||||||
* | Issue #13959: Rename imp to _imp and add Lib/imp.py and begin | Brett Cannon | 2012-04-15 | 1 | -2754/+2771 | |
| | | | | | | | 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. | |||||
* | Issue #14582: Import returns the module returned by a loader instead | Brett Cannon | 2012-04-15 | 1 | -460/+464 | |
| | | | | | | | | | | | | 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. | |||||
* | Handle importing pkg.mod by executing | Brett Cannon | 2012-04-15 | 1 | -248/+249 | |
| | | | | | __import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and thus not segfaulting). | |||||
* | Rebuild importlib.h to incorporate added comments. | Brett Cannon | 2012-04-15 | 1 | -30/+30 | |
| | ||||||
* | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 1 | -0/+3087 | |
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__(). |