summaryrefslogtreecommitdiffstats
path: root/Python/importlib.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Check-in compiled importlib changes (you must run "make" after modifying the ↵Antoine Pitrou2012-07-071-3422/+3408
| | | | importlib sources).
* Issue #15166: Re-implement imp.get_tag() using sys.implementation.Brett Cannon2012-07-021-169/+171
| | | | | | | Also eliminates some C code in Python/import.c as well. Patch by Eric Snow with verification by comparing against another patch from Jeff Knupp.
* Issue #15181: importlib bytecode is unsigned and shouldn't have negative ↵Antoine Pitrou2012-06-251-644/+644
| | | | | | numbers. This fixes a compiler warning with suncc.
* Fixes issue 15039: namespace packages are no longer imported in preference ↵Eric V. Smith2012-06-241-954/+957
| | | | to modules of the same name.
* A better repr() for FileFinderAntoine Pitrou2012-06-231-1072/+1086
|
* Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵Antoine Pitrou2012-06-191-641/+640
| | | | (Modules/_freeze_importlib) to build Python/importlib.h.
* Issue #15103: remove the NUL character (serving as a Mercurial binary ↵Antoine Pitrou2012-06-191-8/+8
| | | | | | marker) from Python/importlib.h. Instead the email notification hook uses a configuration option to omit importlib.h diffs.
* Try to fix issue #15086: build failure on Ubuntu shared buildbot.Antoine Pitrou2012-06-161-2323/+2328
|
* Update importlib.h by touching Lib/importlib/_bootstrap.py.Brett Cannon2012-06-111-1850/+1850
|
* Tweak importlib._bootstrap to avoid zero-argument super so I can work on ↵Nick Coghlan2012-05-271-1857/+1859
| | | | issue #14857 without breaking imports
* Remove some redundant decorators.Brett Cannon2012-05-261-1305/+1302
|
* issue 14660: Implement PEP 420, namespace packages.Eric V. Smith2012-05-251-3303/+3694
|
* Issue #9260: A finer-grained import lock.Antoine Pitrou2012-05-171-2928/+3348
| | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.
* Avoid "warning: no newline at end of file" in importlib.h.Antoine Pitrou2012-05-161-1/+1
|
* apparently importlib.h wants to be updatedBenjamin Peterson2012-05-151-7/+7
|
* Issue #13959: HaveBrett Cannon2012-05-111-2311/+2332
| | | | | | | | | | importlib.abc.FileLoader.load_module()/get_filename() and importlib.machinery.ExtensionFileLoader.load_module() have their single argument be optional as the loader's constructor has all the ncessary information. This allows for the deprecation of imp.load_source()/load_compile()/load_package().
* Update importlib.hBrett Cannon2012-05-111-2852/+2853
|
* Issue #14583: Fix importlib bug when a package's __init__.py would first ↵Antoine Pitrou2012-05-071-298/+298
| | | | import one of its modules then raise an error.
* Clean up a docstring.Brett Cannon2012-05-041-122/+112
|
* update importlib.hBrett Cannon2012-05-041-1/+1
|
* Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.Brett Cannon2012-05-041-2963/+2863
| | | | | | 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.
* Issue #14646: __import__() now sets __loader__ if need be.Brett Cannon2012-04-271-2398/+2435
| | | | | | importlib.util.module_for_loader also will set __loader__ along with __package__. This is in conjunction to a forthcoming update to PEP 302 which will make these two attributes required for loaders to set.
* Issue #14605: Don't error out if get_importer() returns None.Brett Cannon2012-04-271-1104/+1097
|
* Issue #14605: Use None in sys.path_importer_cache to represent noBrett Cannon2012-04-271-1096/+1065
| | | | finder instead of using some (now non-existent) implicit finder.
* Issue #14605: Stop having implicit entries for sys.meta_path.Brett Cannon2012-04-271-2961/+2967
| | | | ImportWarning is raised if sys.meta_path is found to be empty.
* Issue #14605: Make explicit the entries on sys.path_hooks that used toBrett Cannon2012-04-261-3059/+2983
| | | | | | | | | | | | be implicit. Added a warning for when sys.path_hooks is found to be empty. Also changed the meaning of None in sys.path_importer_cache to represent trying sys.path_hooks again (an interpretation of previous semantics). Also added a warning for when None was found. The long-term goal is for None in sys.path_importer_cache to represent the same as imp.NullImporter: no finder found for that sys.path entry.
* Update importlib.hBrett Cannon2012-04-261-7/+7
|
* Issue #14605 and #14642:Marc-Andre Lemburg2012-04-251-113/+113
| | | | | | Issue a warning in case Python\importlib.h needs to be rebuilt, but there's no Python interpreter around to freeze the bootstrap script.
* Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.Marc-Andre Lemburg2012-04-251-1421/+1421
| | | | | This time also recreating the Python/importlib.h file to make make happy. See the ticket for details.
* Issue #14605: Expose importlib.abc.FileLoader andBrett Cannon2012-04-221-2971/+2904
| | | | | | | | importlib.machinery.(FileFinder, SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader). This exposes all of importlib's mechanisms that will become public on the sys module.
* Issue #13959: Continue to try to accomodate altsep in importlib by notBrett Cannon2012-04-221-2966/+2977
| | | | ignoring altsep if it already exists on a path when doing a join.
* Revert to os.path.join() semantics for path manipulation in importlibBrett Cannon2012-04-221-2974/+2964
| | | | which is different than what imp.cache_from_source() operates on.
* Update importlib.hBrett Cannon2012-04-221-2967/+2967
|
* Have importlib look for pre-existing path separators when joiningBrett Cannon2012-04-221-2977/+2981
| | | | paths.
* Don't worry about moving imp.get_tag() over to Lib/imp.py.Brett Cannon2012-04-211-3061/+3064
|
* Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py.Brett Cannon2012-04-211-3134/+3140
|
* Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py.Brett Cannon2012-04-211-2880/+2955
|
* Make path manipulation more robust for platforms with alternative pathBrett Cannon2012-04-211-3014/+3047
| | | | separators.
* Issue #13959: Keep imp.get_magic() in C code, but cache in importlibBrett Cannon2012-04-201-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 takingBrett Cannon2012-04-201-898/+916
| | | | | the file suffix's case into account, even when doing a case-sensitive import.
* update importlib...Benjamin Peterson2012-04-181-885/+891
|
* rollback 005fd1fe31ab (see #14609 and #14582)Benjamin Peterson2012-04-181-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 objectBrett Cannon2012-04-181-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 \x00Antoine Pitrou2012-04-161-1/+1
|
* Try to get hg to treat importlib.h as binary.Brett Cannon2012-04-151-0/+1
|
* Update importlib.hBrett Cannon2012-04-151-2616/+2616
|
* Issue #13959: Rename imp to _imp and add Lib/imp.py and beginBrett Cannon2012-04-151-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 insteadBrett Cannon2012-04-151-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 executingBrett Cannon2012-04-151-248/+249
| | | | | __import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and thus not segfaulting).
* Rebuild importlib.h to incorporate added comments.Brett Cannon2012-04-151-30/+30
|