Files
python-uncompyle6/test/simple_source/comprehension/05_dict_comp.py
rocky 01f2f6578b Dictcomp with if for 2.7...
extend grammar in last commit to 2.7 which also has dictionary comprehensions
2018-03-05 08:37:09 -05:00

9 lines
146 B
Python

# Issue #162
def x(s):
return {k: v
for (k, v) in s
if not k.startswith('_')
}
assert x((('_foo', None),)) == {}