Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Close #15425: Eliminate more importlib related traceback noise | Nick Coghlan | 2012-07-29 | 1 | -2/+9 | |
| | ||||||
* | Issue #14578: Support modules registered in the Windows registry again. | Martin v. Löwis | 2012-07-28 | 1 | -5/+73 | |
| | | | | Patch by Amaury Forgeot d'Arc. | |||||
* | Issue #15343: A lot more than just unicode decoding can go wrong when ↵ | Nick Coghlan | 2012-07-15 | 1 | -4/+13 | |
| | | | | retrieving a source file | |||||
* | Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use | Brett Cannon | 2012-07-13 | 1 | -0/+44 | |
| | | | | | | | | | | | | 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 | -6/+4 | |
| | | | | | | | 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 | -5/+92 | |
| | | | | Lib/imp.py. | |||||
* | Issue #15056: imp.cache_from_source() and source_from_cache() raise | Brett Cannon | 2012-07-09 | 1 | -6/+15 | |
| | | | | | | NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch. | |||||
* | Issue #15110: Copy same docstring as other '_exec_module' methods. | Amaury Forgeot d'Arc | 2012-07-08 | 1 | -0/+3 | |
| | ||||||
* | Issue #15110: Also hide importlib frames when importing a builtin module fails. | Amaury Forgeot d'Arc | 2012-07-08 | 1 | -1/+5 | |
| | ||||||
* | Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵ | Antoine Pitrou | 2012-07-08 | 1 | -3/+22 | |
| | | | | importlib stack frames. | |||||
* | Minor refactoring in importlib._bootstrap, and fix the '_wrap' docstring. | Florent Xicluna | 2012-07-07 | 1 | -14/+15 | |
| | ||||||
* | Issue #15166: Re-implement imp.get_tag() using sys.implementation. | Brett Cannon | 2012-07-02 | 1 | -1/+1 | |
| | | | | | | | 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. | |||||
* | Fixes issue 15039: namespace packages are no longer imported in preference ↵ | Eric V. Smith | 2012-06-24 | 1 | -2/+6 | |
| | | | | to modules of the same name. | |||||
* | A better repr() for FileFinder | Antoine Pitrou | 2012-06-23 | 1 | -0/+2 | |
| | ||||||
* | Issue #14938: importlib.abc.SourceLoader.is_package() now takes the | Brett Cannon | 2012-06-16 | 1 | -1/+3 | |
| | | | | | | | | | module name into consideration when determining whether a module is a package or not. This prevents importing a module's __init__ module directly and having it considered a package, which can lead to duplicate sub-modules. Thanks to Ronan Lamy for reporting the bug. | |||||
* | Tweak importlib._bootstrap to avoid zero-argument super so I can work on ↵ | Nick Coghlan | 2012-05-27 | 1 | -1/+3 | |
| | | | | issue #14857 without breaking imports | |||||
* | Remove some redundant decorators. | Brett Cannon | 2012-05-26 | 1 | -2/+0 | |
| | ||||||
* | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 1 | -15/+139 | |
| | ||||||
* | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 1 | -13/+178 | |
| | | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports. | |||||
* | Issue #13959: Have | Brett Cannon | 2012-05-11 | 1 | -5/+9 | |
| | | | | | | | | | | 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(). | |||||
* | Issue #13959: Deprecate imp.get_suffixes() for new attributes on | Brett Cannon | 2012-05-11 | 1 | -9/+15 | |
| | | | | | | | | | | | importlib.machinery that provide the suffix details for import. The attributes were not put on imp so as to compartmentalize everything importlib needs for setting up imports in importlib.machinery. This also led to an indirect deprecation of inspect.getmoduleinfo() as it directly returned imp.get_suffix's returned tuple which no longer makes sense. | |||||
* | Issue #14583: Fix importlib bug when a package's __init__.py would first ↵ | Antoine Pitrou | 2012-05-07 | 1 | -1/+1 | |
| | | | | import one of its modules then raise an error. | |||||
* | Clean up a docstring. | Brett Cannon | 2012-05-04 | 1 | -6/+1 | |
| | ||||||
* | Jython-friendly tweak. | 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 | -41/+4 | |
| | | | | | | 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. | |||||
* | Properly mark names in importlib._bootstrap as private. | Brett Cannon | 2012-05-04 | 1 | -31/+31 | |
| | ||||||
* | Issue #14646: __import__() now sets __loader__ if need be. | Brett Cannon | 2012-04-27 | 1 | -3/+25 | |
| | | | | | | 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: Use None in sys.path_importer_cache to represent no | Brett Cannon | 2012-04-27 | 1 | -21/+5 | |
| | | | | 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 | -4/+4 | |
| | | | | 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 | -45/+19 | |
| | | | | | | | | | | | | 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. | |||||
* | Issue #14605 and #14642: | Marc-Andre Lemburg | 2012-04-25 | 1 | -0/+7 | |
| | | | | | | 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 | -2/+2 | |
| | | | | | This time also recreating the Python/importlib.h file to make make happy. See the ticket for details. | |||||
* | Issue #14605: Revert renaming of _SourcelessFileLoader, since it caused | Marc-Andre Lemburg | 2012-04-25 | 1 | -2/+2 | |
| | | | | the buildbots to fail. | |||||
* | Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader | Marc-Andre Lemburg | 2012-04-24 | 1 | -2/+2 | |
| | ||||||
* | Issue #14605: Expose importlib.abc.FileLoader and | Brett Cannon | 2012-04-22 | 1 | -54/+47 | |
| | | | | | | | | 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 | -5/+11 | |
| | | | | 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 | -11/+2 | |
| | | | | which is different than what imp.cache_from_source() operates on. | |||||
* | Continue the good fight to get Windows to like importlib by fixing a | Brett Cannon | 2012-04-22 | 1 | -1/+3 | |
| | | | | variable name. | |||||
* | Have importlib look for pre-existing path separators when joining | Brett Cannon | 2012-04-22 | 1 | -2/+10 | |
| | | | | paths. | |||||
* | Don't worry about moving imp.get_tag() over to Lib/imp.py. | Brett Cannon | 2012-04-21 | 1 | -1/+3 | |
| | ||||||
* | Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py. | Brett Cannon | 2012-04-21 | 1 | -1/+5 | |
| | ||||||
* | Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py. | Brett Cannon | 2012-04-21 | 1 | -5/+27 | |
| | ||||||
* | Make path manipulation more robust for platforms with alternative path | Brett Cannon | 2012-04-21 | 1 | -16/+27 | |
| | | | | separators. | |||||
* | Issue #13959: Keep imp.get_magic() in C code, but cache in importlib | Brett Cannon | 2012-04-20 | 1 | -4/+8 | |
| | | | | | | 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 | -1/+17 | |
| | | | | | the file suffix's case into account, even when doing a case-sensitive import. | |||||
* | don't bother keeping a set we'll never use | Benjamin Peterson | 2012-04-18 | 1 | -1/+2 | |
| | ||||||
* | rollback 005fd1fe31ab (see #14609 and #14582) | Benjamin Peterson | 2012-04-18 | 1 | -10/+6 | |
| | | | | | 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 | -3/+3 | |
| | | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug. | |||||
* | Issue #13959: Rename imp to _imp and add Lib/imp.py and begin | Brett Cannon | 2012-04-15 | 1 | -30/+40 | |
| | | | | | | | 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. | |||||
* | merge | Brett Cannon | 2012-04-15 | 1 | -2/+2 | |
|\ |