You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Handle named parameters in 3.0..3.3 lambdas
What a pain. Thank you, Python!
This commit is contained in:
BIN
test/bytecode_3.0_run/04_lambda_star_default.pyc
Normal file
BIN
test/bytecode_3.0_run/04_lambda_star_default.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.1_run/04_lambda_star_default.pyc
Normal file
BIN
test/bytecode_3.1_run/04_lambda_star_default.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.2_run/04_lambda_star_default.pyc
Normal file
BIN
test/bytecode_3.2_run/04_lambda_star_default.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.3_run/04_lambda_star_default.pyc
Normal file
BIN
test/bytecode_3.3_run/04_lambda_star_default.pyc
Normal file
Binary file not shown.
@@ -3,6 +3,7 @@
|
||||
# Bug is handling default value after * argument in a lambda.
|
||||
# That's a mouthful of desciption; I am not sure if the really
|
||||
# hacky fix to the code is even correct.
|
||||
|
||||
#
|
||||
# FIXME: try and test with more than one default argument.
|
||||
|
||||
@@ -14,4 +15,4 @@ packs = {w: (lambda *data, width=w: pack(width, data)) for w in (1, 2, 4)}
|
||||
|
||||
assert packs[1]('a') == (1, ('a',))
|
||||
assert packs[2]('b') == (2, ('b',))
|
||||
assert packs[4]('b') == (4, ('c',))
|
||||
assert packs[4]('c') == (4, ('c',))
|
||||
|
Reference in New Issue
Block a user