mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
evaluate lambda keyword-only defaults after positional defaults (#16967 again)
This commit is contained in:
parent
8b466c9932
commit
419d9a83d5
4 changed files with 9 additions and 5 deletions
|
@ -396,7 +396,7 @@ Known values:
|
|||
3210 (added size modulo 2**32 to the pyc header)
|
||||
Python 3.3a1 3220 (changed PEP 380 implementation)
|
||||
Python 3.3a4 3230 (revert changes to implicit __class__ closure)
|
||||
Python 3.4a1 3240 (evaluate positional default arguments before
|
||||
Python 3.4a1 3250 (evaluate positional default arguments before
|
||||
keyword-only defaults)
|
||||
|
||||
MAGIC must change whenever the bytecode emitted by the compiler may no
|
||||
|
@ -404,7 +404,7 @@ longer be understood by older implementations of the eval loop (usually
|
|||
due to the addition of new opcodes).
|
||||
|
||||
"""
|
||||
_RAW_MAGIC_NUMBER = 3240 | ord('\r') << 16 | ord('\n') << 24
|
||||
_RAW_MAGIC_NUMBER = 3250 | ord('\r') << 16 | ord('\n') << 24
|
||||
_MAGIC_BYTES = bytes(_RAW_MAGIC_NUMBER >> n & 0xff for n in range(0, 25, 8))
|
||||
|
||||
_PYCACHE = '__pycache__'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue