mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
cleanup the construction of __qualname__ (closes #19301 again)
This commit is contained in:
parent
a7a150c7c6
commit
6b4f7803f8
5 changed files with 225 additions and 207 deletions
|
@ -370,12 +370,13 @@ def _call_with_frames_removed(f, *args, **kwds):
|
|||
# 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)
|
||||
# Python 3.4a4 3300 (more 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 = (3290).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3300).to_bytes(2, 'little') + b'\r\n'
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
_PYCACHE = '__pycache__'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue