Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15254)

Delta Between Two Patch Sets: Lib/importlib/_bootstrap_external.py

Issue 27095: Simplify MAKE_FUNCTION
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 3 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 """Core implementation of path-based import. 1 """Core implementation of path-based import.
2 2
3 This module is NOT meant to be directly imported! It has been designed such 3 This module is NOT meant to be directly imported! It has been designed such
4 that it can be bootstrapped into Python as the implementation of import. As 4 that it can be bootstrapped into Python as the implementation of import. As
5 such it requires the injection of specific modules and attributes in order to 5 such it requires the injection of specific modules and attributes in order to
6 work. One should use importlib as the public-facing version of this module. 6 work. One should use importlib as the public-facing version of this module.
7 7
8 """ 8 """
9 # 9 #
10 # IMPORTANT: Whenever making changes to this module, be sure to run 10 # IMPORTANT: Whenever making changes to this module, be sure to run
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 # free vars) 212 # free vars)
213 # Python 3.4a1 3270 (various tweaks to the __class__ closure) 213 # Python 3.4a1 3270 (various tweaks to the __class__ closure)
214 # Python 3.4a1 3280 (remove implicit class argument) 214 # Python 3.4a1 3280 (remove implicit class argument)
215 # Python 3.4a4 3290 (changes to __qualname__ computation) 215 # Python 3.4a4 3290 (changes to __qualname__ computation)
216 # Python 3.4a4 3300 (more changes to __qualname__ computation) 216 # Python 3.4a4 3300 (more changes to __qualname__ computation)
217 # Python 3.4rc2 3310 (alter __qualname__ computation) 217 # Python 3.4rc2 3310 (alter __qualname__ computation)
218 # Python 3.5a0 3320 (matrix multiplication operator) 218 # Python 3.5a0 3320 (matrix multiplication operator)
219 # Python 3.5b1 3330 (PEP 448: Additional Unpacking Generalizations) 219 # Python 3.5b1 3330 (PEP 448: Additional Unpacking Generalizations)
220 # Python 3.5b2 3340 (fix dictionary display evaluation order #11205) 220 # Python 3.5b2 3340 (fix dictionary display evaluation order #11205)
221 # Python 3.5b2 3350 (add GET_YIELD_FROM_ITER opcode #24400) 221 # Python 3.5b2 3350 (add GET_YIELD_FROM_ITER opcode #24400)
222 # Python 3.5.2 3351 (fix BUILD_MAP_UNPACK_WITH_CALL opcode #27286)
222 # Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483 223 # Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483
223 # Python 3.6a0 3361 (lineno delta of code.co_lnotab becomes signed) 224 # Python 3.6a0 3361 (lineno delta of code.co_lnotab becomes signed)
224 # Python 3.6a1 3370 (16 bit wordcode) 225 # Python 3.6a1 3370 (16 bit wordcode)
225 # Python 3.6a1 3371 (add BUILD_CONST_KEY_MAP opocode #27140) 226 # Python 3.6a1 3371 (add BUILD_CONST_KEY_MAP opocode #27140)
226 # Python 3.6a1 3372 (MAKE_FUNCTION simplification) 227 # Python 3.6a1 3372 (MAKE_FUNCTION simplification)
227 # 228 #
228 # MAGIC must change whenever the bytecode emitted by the compiler may no 229 # MAGIC must change whenever the bytecode emitted by the compiler may no
229 # longer be understood by older implementations of the eval loop (usually 230 # longer be understood by older implementations of the eval loop (usually
230 # due to the addition of new opcodes). 231 # due to the addition of new opcodes).
231 # 232 #
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 supported_loaders = _get_supported_file_loaders() 1422 supported_loaders = _get_supported_file_loaders()
1422 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)]) 1423 sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
1423 if _os.__name__ == 'nt': 1424 if _os.__name__ == 'nt':
1424 sys.meta_path.append(WindowsRegistryFinder) 1425 sys.meta_path.append(WindowsRegistryFinder)
1425 sys.meta_path.append(PathFinder) 1426 sys.meta_path.append(PathFinder)
1426 1427
1427 # XXX We expose a couple of classes in _bootstrap for the sake of 1428 # XXX We expose a couple of classes in _bootstrap for the sake of
1428 # a setuptools bug (https://bitbucket.org/pypa/setuptools/issue/378). 1429 # a setuptools bug (https://bitbucket.org/pypa/setuptools/issue/378).
1429 _bootstrap_module.FileFinder = FileFinder 1430 _bootstrap_module.FileFinder = FileFinder
1430 _bootstrap_module.SourceFileLoader = SourceFileLoader 1431 _bootstrap_module.SourceFileLoader = SourceFileLoader
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+