Files
python-uncompyle6/test/simple_source/comprehension/05_dict_comp.py
rocky e5f3d803a8 Start Python 1.4 decompilation ...
Tidy up test code for issue 162 and comments for some disassembly massaging.
2018-05-19 07:14:00 -04:00

12 lines
230 B
Python

# Bug was in dictionary comprehension involving "if not"
# Issue #162
#
# This code is RUNNABLE!
def x(s):
return {k: v
for (k, v) in s
if not k.startswith('_')
}
assert x((('_foo', None),)) == {}