diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-10-19 20:01:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-10-19 20:01:13 (GMT) |
commit | 3d9e481ece356d805ee5658600ef2888e35a5609 (patch) | |
tree | f47e7215f5dab6c99da5b0e23872f24a00176137 /Lib/importlib | |
parent | 358667370346594c0383f1bfa09e0d650fa8832d (diff) | |
download | cpython-3d9e481ece356d805ee5658600ef2888e35a5609.zip cpython-3d9e481ece356d805ee5658600ef2888e35a5609.tar.gz cpython-3d9e481ece356d805ee5658600ef2888e35a5609.tar.bz2 |
give explicitly global functions and classes a global __qualname__ (closes #19301)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 880a9ec..e8eeea1 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -369,12 +369,13 @@ def _call_with_frames_removed(f, *args, **kwds): # free vars) # Python 3.4a1 3270 (various tweaks to the __class__ closure) # Python 3.4a1 3280 (remove implicit class argument) +# Python 3.4a4 3290 (changes to __qualname__ computation) # # MAGIC must change whenever the bytecode emitted by the compiler may no # longer be understood by older implementations of the eval loop (usually # due to the addition of new opcodes). -MAGIC_NUMBER = (3280).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3290).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |