Python 2.6 generator rule with 'and' conditional

Fixes #283.
This commit is contained in:
rocky
2019-08-05 10:36:08 -04:00
parent a781006ff1
commit fd580f3c60
4 changed files with 14 additions and 1 deletions

Binary file not shown.

View File

@@ -0,0 +1,7 @@
# 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"]