Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #24192: Fix namespace package imports. | Eric Snow | 2015-05-16 | 1 | -1942/+1942 |
| | |||||
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -1733/+1733 |
| | |||||
* | Issue #23911: Move path-based bootstrap code to a separate frozen module. | Eric Snow | 2015-05-03 | 1 | -4305/+1922 |
| | |||||
* | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -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 Peterson | 2015-02-02 | 1 | -349/+349 |
|\ | |||||
| * | revert lineno and col_offset changes from #16795 (closes #21295) | Benjamin Peterson | 2015-02-02 | 1 | -3895/+3895 |
| | | |||||
* | | Issue #23014: Make importlib.abc.Loader.create_module() required when | Brett Cannon | 2015-01-09 | 1 | -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.h | Zachary Ware | 2014-12-15 | 1 | -3763/+3763 |
| | | |||||
* | | - Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is | Barry Warsaw | 2014-12-01 | 1 | -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 is | Barry Warsaw | 2014-12-01 | 1 | -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 Peksag | 2014-11-24 | 1 | -1/+1 |
| | | |||||
* | | Update importlib.h | Antoine Pitrou | 2014-11-23 | 1 | -430/+430 |
| | | |||||
* | | Issue #22834: Have import suppress FileNotFoundError when the current | Brett Cannon | 2014-11-21 | 1 | -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 or | Brett Cannon | 2014-10-10 | 1 | -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 Brandl | 2014-09-24 | 1 | -3817/+3796 |
| | | |||||
* | | Fix a parameter name to make sense again | Brett Cannon | 2014-05-30 | 1 | -3178/+3178 |
| | | |||||
* | | Issue #20383: Introduce importlib.util.module_from_spec(). | Brett Cannon | 2014-05-30 | 1 | -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 Snow | 2014-05-13 | 1 | -4248/+4275 |
|\ \ | |/ | |||||
| * | Issue #21226: Set all attrs in PyImport_ExecCodeModuleObject. | Eric Snow | 2014-05-12 | 1 | -4248/+4275 |
| | | |||||
| * | Issue #20763: Fix importlib.machinery.PathFinder to support | Brett Cannon | 2014-02-26 | 1 | -1/+1 |
| | | | | | | | | | | | | PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira. | ||||
| * | update magic number for #20625 | Benjamin Peterson | 2014-02-19 | 1 | -160/+160 |
| | | |||||
* | | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) | Benjamin Peterson | 2014-04-10 | 1 | -160/+160 |
| | | |||||
* | | Issue #20763: Fix importlib.machinery.PathFinder to support | Brett Cannon | 2014-02-26 | 1 | -1/+1 |
| | | | | | | | | | | | | PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira. | ||||
* | | update magic number for #20625 | Benjamin Peterson | 2014-02-19 | 1 | -160/+160 |
|/ | |||||
* | Issue 19713: Remove PEP 451-related code that should have been factored out. | Eric Snow | 2014-01-08 | 1 | -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 Hastings | 2014-01-07 | 1 | -4357/+4342 |
| | | | | format unit. | ||||
* | Issue 19713: Add PEP 451-related deprecations. | Eric Snow | 2014-01-07 | 1 | -3943/+4031 |
| | |||||
* | Issue #19927: Add __eq__ to path-based loaders in importlib. | Eric Snow | 2014-01-04 | 1 | -619/+659 |
| | |||||
* | Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder. | Eric Snow | 2014-01-03 | 1 | -1860/+1860 |
| | |||||
* | Remove some dead code in importlib, introduced with the PEP 451 patch. | Eric Snow | 2013-12-19 | 1 | -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 Snow | 2013-12-11 | 1 | -2909/+2918 |
| | |||||
* | Issue #19698: Remove exec_module() from the built-in and extension | Brett Cannon | 2013-11-29 | 1 | -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 places | Brett Cannon | 2013-11-22 | 1 | -3282/+3283 |
| | |||||
* | Remove a commented-out line | Brett Cannon | 2013-11-22 | 1 | -125/+125 |
| | |||||
* | Don't assume trying to find a builtin will succeed (e.g. posix isn't on Windows) | Brett Cannon | 2013-11-22 | 1 | -194/+198 |
| | |||||
* | Implement PEP 451 (ModuleSpec). | Eric Snow | 2013-11-22 | 1 | -3322/+4083 |
| | |||||
* | Abstract out stat calls in importlib for easier experimentation. | Brett Cannon | 2013-11-01 | 1 | -2733/+2747 |
| | |||||
* | Issue #19410: Put back in special-casing of '' for | Brett Cannon | 2013-11-01 | 1 | -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 Snow | 2013-11-01 | 1 | -503/+508 |
| | |||||
* | cleanup the construction of __qualname__ (closes #19301 again) | Benjamin Peterson | 2013-10-20 | 1 | -135/+135 |
| | |||||
* | give explicitly global functions and classes a global __qualname__ (closes ↵ | Benjamin Peterson | 2013-10-19 | 1 | -3433/+3210 |
| | | | | #19301) | ||||
* | Issue #18810: Be optimistic with stat calls when seeing if a directory | Brett Cannon | 2013-10-18 | 1 | -769/+768 |
| | | | | | | | | | | | | | | | | | | | exists when checking for a package. Before there was an isdir check and then various isfile checks for possible __init__ files when looking for a package. This change drops the isdir check by leaning on the assumption that a directory will not contain something named after the module being imported which is not a directory. If the module is a package then it saves a stat call. If there is nothing in the directory with the potential package name it also saves a stat call. Only if there is something in the directory named the same thing as the potential package will the number of stat calls increase (due to more wasteful __init__ checks). Semantically there is no change as the isdir check moved down so that namespace packages continue to have no chance of accidentally collecting non-existent directories. | ||||
* | Issue #18416: Fix various os calls in importlib.machinery.FileFinder | Brett Cannon | 2013-10-18 | 1 | -776/+778 |
| | | | | now that self.path is no longer forced to '.'. | ||||
* | Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd | Brett Cannon | 2013-10-18 | 1 | -3219/+3442 |
| | | | | | | | | | | | | | | | | | | | and stop importlib.machinery.FileFinder treating '' as '.'. Previous PathFinder transformed '' into '.' which led to __file__ for modules imported from the cwd to always be relative paths. This meant the values of the attribute were wrong as soon as the cwd changed. This change now means that as long as the site module is run (which makes all entries in sys.path absolute) then all values for __file__ will also be absolute unless it's for __main__ when specified by file path in a relative way (modules imported by runpy will have an absolute path). Now that PathFinder is no longer treating '' as '.' it only makes sense for FileFinder to stop doing so as well. Now no transformation is performed for the directory given to the __init__ method. Thanks to Madison May for the initial patch. | ||||
* | Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to ↵ | Antoine Pitrou | 2013-10-12 | 1 | -3423/+3200 |
| | | | | 10%) smaller. | ||||
* | [issue19152] Add ExtensionFileLoader.get_filename(). | Eric Snow | 2013-10-03 | 1 | -1348/+1362 |
| | |||||
* | [issue19951] Fix docstring and use of _get_suppported_file_loaders() to ↵ | Eric Snow | 2013-10-03 | 1 | -1931/+1929 |
| | | | | reflect 2-tuples. | ||||
* | Issue #16826: Revert fix while Windows issues are being worked out. | Meador Inge | 2013-09-04 | 1 | -3119/+3115 |
|\ | |||||
| * | Issue #16826: Revert fix while Windows issues are being worked out. | Meador Inge | 2013-09-04 | 1 | -4206/+4201 |
| | | |||||
* | | Issue #16826: Don't check for PYTHONCASEOK when using -E. | Meador Inge | 2013-09-03 | 1 | -3115/+3119 |
|\ \ | |/ | | | | | | | This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable. |