You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Handle comprehensions inside a lambda
This commit is contained in:
11
test/simple_source/bug27+/03_comprehension_in_lambda.py
Normal file
11
test/simple_source/bug27+/03_comprehension_in_lambda.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# RUNNABLE!
|
||||
# From issue 469
|
||||
|
||||
"""This program is self-checking!"""
|
||||
|
||||
my_dict = (lambda variable0: {variable1: 123 for variable1 in variable0})([1, 2, 3])
|
||||
|
||||
assert my_dict[1] == 123
|
||||
|
||||
my_set = (lambda variable0: {variable1 for variable1 in variable0})([1, 2, 3])
|
||||
assert 2 in my_set
|
Reference in New Issue
Block a user