Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix docstring wording | Philip Jenvey | 2012-08-10 | 1 | -3/+3 |
| | |||||
* | Issue #15502: Refactor some code. | Brett Cannon | 2012-08-10 | 2 | -15/+17 |
| | |||||
* | update docstring per the extension package fix, refactor | Philip Jenvey | 2012-08-10 | 1 | -6/+3 |
| | |||||
* | Issue #15576: Allow extension modules to be a package's __init__ | Brett Cannon | 2012-08-10 | 2 | -17/+25 |
| | | | | | 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 | 3 | -19/+41 |
| | | | | | | | | | 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 | -2/+3 |
| | | | | parameters of importlib.__import__(). | ||||
* | Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵ | Nick Coghlan | 2012-08-02 | 1 | -4/+4 |
| | | | | 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 | 3 | -5/+6 |
| | | | | the name into line with normal import terminology. Original patch by Eric Snow | ||||
* | Issue #15502: Bring the importlib ABCs into line with the current state of ↵ | Nick Coghlan | 2012-08-02 | 1 | -21/+49 |
| | | | | the import protocols given PEP 420. Original patch by Eric Snow. | ||||
* | Typo. | Barry Warsaw | 2012-07-31 | 1 | -2/+2 |
| | |||||
* | merge | Barry Warsaw | 2012-07-31 | 1 | -42/+23 |
|\ | |||||
| * | Close #15486: Simplify the mechanism used to remove importlib frames from ↵ | Nick Coghlan | 2012-07-31 | 1 | -42/+23 |
| | | | | | | | | tracebacks when they just introduce irrelevant noise | ||||
* | | merged | Barry Warsaw | 2012-07-29 | 1 | -7/+82 |
|\ \ | |/ | |||||
| * | 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. | ||||
* | | Integration of importdocs from the features/pep-420 repo. | Barry Warsaw | 2012-07-29 | 1 | -1/+18 |
|/ | |||||
* | Issue #15168: Move importlb.test to test.test_importlib. | Brett Cannon | 2012-07-20 | 41 | -4547/+0 |
| | | | | | This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution. | ||||
* | Close #15386: There was a loophole that meant importlib.machinery and imp ↵ | Nick Coghlan | 2012-07-20 | 1 | -2/+11 |
| | | | | would sometimes reference an uninitialised copy of importlib._bootstrap | ||||
* | Close #15387: inspect.getmodulename() now uses a new ↵ | Nick Coghlan | 2012-07-18 | 1 | -0/+4 |
| | | | | importlib.machinery.all_suffixes() API rather than the deprecated inspect.getmoduleinfo() | ||||
* | 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 | 2 | -20/+7 |
| | | | | | | | 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 #15210: Greatly simplify the test for supporting importlib | Brett Cannon | 2012-07-04 | 2 | -14/+7 |
| | | | | | working without _frozen_importlib by moving to an import over a direct access in sys.modules. | ||||
* | 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. | ||||
* | Issue #15210: If _frozen_importlib is not found in sys.modules by | Brett Cannon | 2012-07-02 | 2 | -2/+23 |
| | | | | importlib.__init__, then catch the KeyError raised, not ImportError. | ||||
* | Closes #15030: Make importlib.abc.PyPycLoader respect the new .pyc | Brett Cannon | 2012-07-02 | 2 | -3/+13 |
| | | | | | | | file size header field. Thanks to Marc Abramowitz and Ronan Lamy for helping out with various parts of the patch. | ||||
* | Use assertIsNone. Thanks Terry Reedy. | Eric V. Smith | 2012-06-28 | 9 | -11/+11 |
| | |||||
* | Changed importlib tests to use assertIs, assertIsInstance, etc., instead of ↵ | Eric V. Smith | 2012-06-27 | 14 | -58/+58 |
| | | | | just assertTrue. | ||||
* | Fixes issue 15039: namespace packages are no longer imported in preference ↵ | Eric V. Smith | 2012-06-24 | 2 | -3/+7 |
| | | | | to modules of the same name. | ||||
* | A better repr() for FileFinder | Antoine Pitrou | 2012-06-23 | 1 | -0/+2 |
| | |||||
* | Prevent test_inspect from keeping alive a ton of frames and local variables ↵ | Antoine Pitrou | 2012-06-17 | 1 | -1/+1 |
| | | | | | | by way of a global variable keeping a reference to a traceback. Should fix some buildbot failures. | ||||
* | Issue #14657: The frozen instance of importlib used for bootstrap is now ↵ | Antoine Pitrou | 2012-06-17 | 1 | -8/+15 |
| | | | | also the module imported as importlib._bootstrap. | ||||
* | Issue #14938: importlib.abc.SourceLoader.is_package() now takes the | Brett Cannon | 2012-06-16 | 2 | -3/+6 |
| | | | | | | | | | 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 |
| | |||||
* | Whitespace cleanup. | Eric V. Smith | 2012-05-25 | 1 | -4/+4 |
| | |||||
* | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 3 | -41/+160 |
| | |||||
* | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 2 | -13/+293 |
| | | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports. | ||||
* | Add importlib.util.resolve_name(). | Brett Cannon | 2012-05-13 | 2 | -1/+55 |
| | |||||
* | Issue #13959: Introduce importlib.find_loader(). | Brett Cannon | 2012-05-12 | 2 | -1/+73 |
| | | | | | | The long-term goal is to deprecate imp.find_module() in favour of this API, but it will take some time as some APIs explicitly return/use what imp.find_module() returns. | ||||
* | Issue #13959: Have | Brett Cannon | 2012-05-11 | 3 | -10/+59 |
| | | | | | | | | | | 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 | 7 | -34/+45 |
| | | | | | | | | | | | 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 #14764: Update importlib.test.benchmark to work in a world where | Brett Cannon | 2012-05-11 | 1 | -0/+14 |
| | | | | import machinery is no longer implicit. | ||||
* | Issue #14583: Fix importlib bug when a package's __init__.py would first ↵ | Antoine Pitrou | 2012-05-07 | 3 | -2/+62 |
| | | | | import one of its modules then raise an error. |