You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
12 lines
230 B
Python
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),)) == {}
|