evaluate lambda keyword-only defaults after positional defaults (#16967 again)

This commit is contained in:
Benjamin Peterson 2013-02-10 09:48:22 -05:00
parent 8b466c9932
commit 419d9a83d5
4 changed files with 9 additions and 5 deletions

View file

@ -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__'