summaryrefslogtreecommitdiffstats
path: root/Python/importlib.h
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-146/+146
|\
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-154/+154
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode.Serhiy Storchaka2016-05-241-1929/+1790
| | | | | | | | Patch by Demur Rumed.
* | Fix bug in __import__ during Python shutdownVictor Stinner2016-03-241-439/+445
| | | | | | | | | | | | Issue #26637: The importlib module now emits an ImportError rather than a TypeError if __import__() is tried during the Python shutdown process but sys.path is already cleared (set to None).
* | Merge for issue #26367Brett Cannon2016-02-201-393/+398
|\ \ | |/
| * Issue #26367: Have importlib.__init__() raise RuntimeError whenBrett Cannon2016-02-201-370/+371
| | | | | | | | | | | | | | 'level' is specified but no __package__. This brings the function inline with builtins.__import__(). Thanks to Manuel Jacob for the patch.
* | Issue #25791: Warn when __package__ != __spec__.parent.Brett Cannon2016-01-221-54/+63
| | | | | | | | | | | | | | | | | | In a previous change, __spec__.parent was prioritized over __package__. That is a backwards-compatibility break, but we do eventually want __spec__ to be the ground truth for module details. So this change reverts the change in semantics and instead raises an ImportWarning when __package__ != __spec__.parent to give people time to adjust to using spec objects.
* | Issue #25791: Raise an ImportWarning when __spec__ or __package__ areBrett Cannon2016-01-151-273/+286
|/ | | | | | | | not defined for a relative import. This is the start of work to try and clean up import semantics to rely more on a module's spec than on the myriad attributes that get set on a module. Thanks to Rose Ames for the patch.
* Issue #24769: Interpreter now starts properly when dynamic loadingLarry Hastings2015-08-251-1/+1
| | | | is disabled. Patch by Petr Viktorin.
* PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-753/+769
| | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
* Issue #24192: Fix namespace package imports.Eric Snow2015-05-161-1942/+1942
|
* PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-1733/+1733
|
* Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-4305/+1922
|
* Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-4220/+4281
| | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* merge 3.4 (#21295)Benjamin Peterson2015-02-021-349/+349
|\
| * revert lineno and col_offset changes from #16795 (closes #21295)Benjamin Peterson2015-02-021-3895/+3895
| |
* | Issue #23014: Make importlib.abc.Loader.create_module() required whenBrett Cannon2015-01-091-2330/+2375
| | | | | | | | | | | | | | | | | | importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None).
* | Update Python/importlib.hZachary Ware2014-12-151-3763/+3763
| |
* | - Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile isBarry Warsaw2014-12-011-3495/+3496
|\ \ | |/ | | | | | | asked to compile a source file containing multiple dots in the source file name.
| * - Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile isBarry Warsaw2014-12-011-3611/+3612
| | | | | | | | | | asked to compile a source file containing multiple dots in the source file name.
* | Issue #22934: Update the comment to mention Programs/_freeze_importlib.c.Berker Peksag2014-11-241-1/+1
| |
* | Update importlib.hAntoine Pitrou2014-11-231-430/+430
| |
* | Issue #22834: Have import suppress FileNotFoundError when the currentBrett Cannon2014-11-211-998/+1000
| | | | | | | | | | | | working directory no longer exists. Thanks to Martin Panter for the bug report.
* | Issue #21052: Don't raise ImportWarning for sys.meta_path orBrett Cannon2014-10-101-24/+26
| | | | | | | | | | | | sys.path_hooks when set to None during interpreter shutdown. Thanks to Martin Panter for the initial bug report.
* | Update importlib.h frozen bytecode (changed due to commit c0ca9d32aed4).Georg Brandl2014-09-241-3817/+3796
| |
* | Fix a parameter name to make sense againBrett Cannon2014-05-301-3178/+3178
| |
* | Issue #20383: Introduce importlib.util.module_from_spec().Brett Cannon2014-05-301-4288/+4178
| | | | | | | | | | | | Along the way, dismantle importlib._bootstrap._SpecMethods as it was no longer relevant and constructing the new function required partially dismantling the class anyway.
* | Merge from 3.4 (for #21226).Eric Snow2014-05-131-4248/+4275
|\ \ | |/
| * Issue #21226: Set all attrs in PyImport_ExecCodeModuleObject.Eric Snow2014-05-121-4248/+4275
| |
| * Issue #20763: Fix importlib.machinery.PathFinder to supportBrett Cannon2014-02-261-1/+1
| | | | | | | | | | | | PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira.
| * update magic number for #20625Benjamin Peterson2014-02-191-160/+160
| |
* | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-101-160/+160
| |
* | Issue #20763: Fix importlib.machinery.PathFinder to supportBrett Cannon2014-02-261-1/+1
| | | | | | | | | | | | PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira.
* | update magic number for #20625Benjamin Peterson2014-02-191-160/+160
|/
* Issue 19713: Remove PEP 451-related code that should have been factored out.Eric Snow2014-01-081-1216/+1187
| | | | | | This code was an artifact of issuing a DeprecationWarning for the lack of loader.exec_module(). However, we have deferred such warnings to later Python versions.
* Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"Larry Hastings2014-01-071-4357/+4342
| | | | format unit.
* Issue 19713: Add PEP 451-related deprecations.Eric Snow2014-01-071-3943/+4031
|
* Issue #19927: Add __eq__ to path-based loaders in importlib.Eric Snow2014-01-041-619/+659
|
* Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder.Eric Snow2014-01-031-1860/+1860
|
* Remove some dead code in importlib, introduced with the PEP 451 patch.Eric Snow2013-12-191-986/+980
| | | | | | | Early in the PEP 451 implementation some of the importlib loaders had their own _get_spec() methods to simplify accommodating them. However, later implementations removed the need. They simply failed to remove this code at the same time. :)
* Issue #18864: Add a setter for ModuleSpec.has_location.Eric Snow2013-12-111-2909/+2918
|
* Issue #19698: Remove exec_module() from the built-in and extensionBrett Cannon2013-11-291-4160/+4195
| | | | | | | | | | | | | module loaders. Due to the fact that the call signatures for extension modules and built-in modules does not allow for the specifying of what module to initialize and that on Windows all extension modules are built-in modules, work to clean up built-in and extension module initialization will have to wait until Python 3.5. Because of this the semantics of exec_module() would be incorrect, so removing the methods for now is the best option; load_module() is still used as a fallback by importlib and so this won't affect semantics.
* User the repr for a module name in more placesBrett Cannon2013-11-221-3282/+3283
|
* Remove a commented-out lineBrett Cannon2013-11-221-125/+125
|
* Don't assume trying to find a builtin will succeed (e.g. posix isn't on Windows)Brett Cannon2013-11-221-194/+198
|
* Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-3322/+4083
|
* Abstract out stat calls in importlib for easier experimentation.Brett Cannon2013-11-011-2733/+2747
|
* Issue #19410: Put back in special-casing of '' forBrett Cannon2013-11-011-793/+793
| | | | | | | | | importlib.machinery.FileFinder. While originally moved to stop special-casing '' as PathFinder farther up the typical call chain now uses the cwd in the instance of '', it was deemed an unnecessary risk to breaking subclasses of FileFinder to take the special-casing out.
* Issue #19413: Restore pre-3.3 reload() semantics of re-finding modules.Eric Snow2013-11-011-503/+508
|
* cleanup the construction of __qualname__ (closes #19301 again)Benjamin Peterson2013-10-201-135/+135
|