Files
python-uncompyle6/test/simple_source/bug26/05_generator.py
rocky f4ac13ef0f Python 2.5-2.6 generator bug
Adjust for variable position of list iteration node in a genexpr node
2016-09-03 21:37:32 -04:00

10 lines
273 B
Python

# From Python 2.6 ast.py
# Bug was finding the last iteration expression in generator-expression handling
#
fields = (1, 2)
rv = '%s(%s' % (__name__.__class__.__name__, ', '.join(
('%s=%s' % field for field in fields)
if __file__ else
(b for a, b in fields)
))