Files
python-uncompyle6/test/simple_source/bug26/00_generator.py
2019-08-05 10:36:08 -04:00

8 lines
204 B
Python

# Issue #283 in Python 2.6
# See https://github.com/rocky/python-uncompyle6/issues/283
# This code is RUNNABLE!
G = ( c for c in "spam, Spam, SPAM!" if c > 'A' and c < 'S')
assert list(G) == ["P", "M"]