Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Issue #15502: Refactor some code. | Brett Cannon | 2012-08-10 | 1 | -4152/+4153 | |
| | ||||||
* | update docstring per the extension package fix, refactor | Philip Jenvey | 2012-08-10 | 1 | -1647/+1658 | |
| | ||||||
* | Issue #15576: Allow extension modules to be a package's __init__ | Brett Cannon | 2012-08-10 | 1 | -3615/+3616 | |
| | | | | | module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public. | |||||
* | Issue #15502: Finish bringing importlib.abc in line with the current | Brett Cannon | 2012-08-10 | 1 | -1160/+1192 | |
| | | | | | | | | | state of the import system. Also make importlib.invalidate_caches() work with sys.meta_path instead of sys.path_importer_cache to completely separate the path-based import system from the overall import system. Patch by Eric Snow. | |||||
* | Issue #15471: Don't use mutable object as default values for the | Brett Cannon | 2012-08-06 | 1 | -69/+72 | |
| | | | | parameters of importlib.__import__(). | |||||
* | Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵ | Nick Coghlan | 2012-08-02 | 1 | -1276/+1277 | |
| | | | | with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue | |||||
* | Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵ | Nick Coghlan | 2012-08-02 | 1 | -2491/+2489 | |
| | | | | the name into line with normal import terminology. Original patch by Eric Snow | |||||
* | Close #15486: Simplify the mechanism used to remove importlib frames from ↵ | Nick Coghlan | 2012-07-31 | 1 | -3529/+3451 | |
| | | | | tracebacks when they just introduce irrelevant noise | |||||
* | Close #15425: Eliminate more importlib related traceback noise | Nick Coghlan | 2012-07-29 | 1 | -4103/+4128 | |
| | ||||||
* | Issue #14578: Support modules registered in the Windows registry again. | Martin v. Löwis | 2012-07-28 | 1 | -3943/+4128 | |
| | | | | Patch by Amaury Forgeot d'Arc. | |||||
* | Issue #15466: Stop using TYPE_INT64 in marshal, | Martin v. Löwis | 2012-07-28 | 1 | -2321/+2321 | |
| | | | | | to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems. | |||||
* | Issue #15343: A lot more than just unicode decoding can go wrong when ↵ | Nick Coghlan | 2012-07-15 | 1 | -2102/+2121 | |
| | | | | retrieving a source file | |||||
* | Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use | Brett Cannon | 2012-07-13 | 1 | -3820/+3943 | |
| | | | | | | | | | | | | Lib/imp.py for imp.source_from_cache() instead of its own C version. Also change PyImport_ExecCodeModuleObject() to not infer the source path from the bytecode path like PyImport_ExecCodeModuleWithPathnames() does. This makes the function less magical. This also has the side-effect of removing all uses of MAXPATHLEN in Python/import.c which can cause failures on really long filenames. | |||||
* | Issue #15111: When a module was imported using a 'from import' | Brett Cannon | 2012-07-10 | 1 | -400/+397 | |
| | | | | | | | statement (e.g. ``from distutils import msvc9compiler``) that triggers an ImportError of its own (e.g. the non-existence of winreg), let that exception propagate instead of raising a generic ImportError for the module being requested (e.g. msvc9compiler). | |||||
* | Issue #15167 (as part of #13959): imp.get_magic() is no implemented in | Brett Cannon | 2012-07-09 | 1 | -3774/+3792 | |
| | | | | Lib/imp.py. | |||||
* | Issue #15056: imp.cache_from_source() and source_from_cache() raise | Brett Cannon | 2012-07-09 | 1 | -3759/+3784 | |
| | | | | | | NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch. | |||||
* | Issue #15110: Also hide importlib frames when importing a builtin module fails. | Amaury Forgeot d'Arc | 2012-07-08 | 1 | -2701/+2716 | |
| | ||||||
* | Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵ | Antoine Pitrou | 2012-07-08 | 1 | -2460/+2537 | |
| | | | | importlib stack frames. | |||||
* | Check-in compiled importlib changes (you must run "make" after modifying the ↵ | Antoine Pitrou | 2012-07-07 | 1 | -3422/+3408 | |
| | | | | importlib sources). | |||||
* | Issue #15166: Re-implement imp.get_tag() using sys.implementation. | Brett Cannon | 2012-07-02 | 1 | -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 Pitrou | 2012-06-25 | 1 | -644/+644 | |
| | | | | | | numbers. This fixes a compiler warning with suncc. | |||||
* | Fixes issue 15039: namespace packages are no longer imported in preference ↵ | Eric V. Smith | 2012-06-24 | 1 | -954/+957 | |
| | | | | to modules of the same name. | |||||
* | A better repr() for FileFinder | Antoine Pitrou | 2012-06-23 | 1 | -1072/+1086 | |
| | ||||||
* | Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵ | Antoine Pitrou | 2012-06-19 | 1 | -641/+640 | |
| | | | | (Modules/_freeze_importlib) to build Python/importlib.h. | |||||
* | Issue #15103: remove the NUL character (serving as a Mercurial binary ↵ | Antoine Pitrou | 2012-06-19 | 1 | -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 Pitrou | 2012-06-16 | 1 | -2323/+2328 | |
| | ||||||
* | Update importlib.h by touching Lib/importlib/_bootstrap.py. | Brett Cannon | 2012-06-11 | 1 | -1850/+1850 | |
| | ||||||
* | Tweak importlib._bootstrap to avoid zero-argument super so I can work on ↵ | Nick Coghlan | 2012-05-27 | 1 | -1857/+1859 | |
| | | | | issue #14857 without breaking imports | |||||
* | Remove some redundant decorators. | Brett Cannon | 2012-05-26 | 1 | -1305/+1302 | |
| | ||||||
* | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 1 | -3303/+3694 | |
| | ||||||
* | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 1 | -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 Pitrou | 2012-05-16 | 1 | -1/+1 | |
| | ||||||
* | apparently importlib.h wants to be updated | Benjamin Peterson | 2012-05-15 | 1 | -7/+7 | |
| | ||||||
* | Issue #13959: Have | Brett Cannon | 2012-05-11 | 1 | -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.h | Brett Cannon | 2012-05-11 | 1 | -2852/+2853 | |
| | ||||||
* | Issue #14583: Fix importlib bug when a package's __init__.py would first ↵ | Antoine Pitrou | 2012-05-07 | 1 | -298/+298 | |
| | | | | import one of its modules then raise an error. | |||||
* | Clean up a docstring. | Brett Cannon | 2012-05-04 | 1 | -122/+112 | |
| | ||||||
* | update importlib.h | Brett Cannon | 2012-05-04 | 1 | -1/+1 | |
| | ||||||
* | Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. | Brett Cannon | 2012-05-04 | 1 | -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 Cannon | 2012-04-27 | 1 | -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 Cannon | 2012-04-27 | 1 | -1104/+1097 | |
| | ||||||
* | Issue #14605: Use None in sys.path_importer_cache to represent no | Brett Cannon | 2012-04-27 | 1 | -1096/+1065 | |
| | | | | finder instead of using some (now non-existent) implicit finder. | |||||
* | Issue #14605: Stop having implicit entries for sys.meta_path. | Brett Cannon | 2012-04-27 | 1 | -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 to | Brett Cannon | 2012-04-26 | 1 | -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.h | Brett Cannon | 2012-04-26 | 1 | -7/+7 | |
| | ||||||
* | Issue #14605 and #14642: | Marc-Andre Lemburg | 2012-04-25 | 1 | -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 Lemburg | 2012-04-25 | 1 | -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 and | Brett Cannon | 2012-04-22 | 1 | -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 not | Brett Cannon | 2012-04-22 | 1 | -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 importlib | Brett Cannon | 2012-04-22 | 1 | -2974/+2964 | |
| | | | | which is different than what imp.cache_from_source() operates on. |