You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
5 lines
279 B
Python
5 lines
279 B
Python
# Bug from issue #171: parsing "if x if a else y" inside a list comprehension on 2.7
|
|
# This is RUNNABLE!
|
|
assert [False, True, True, True, True] == [False if not a else True for a in range(5)]
|
|
assert [True, False, False, False, False] == [False if a else True for a in range(5)]
|