[issue10544] yield expression inside generator expression does nothing
Serhiy Storchaka
report at bugs.python.org
Thu Nov 23 06:37:35 EST 2017
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
This is straightforward.
__result = []; __i = None
try:
for __i in range(2, 5):
__result2 = []; __x = __y = None
try:
for __x in range(2):
for __y in range(1, __i):
__result2.append(__x + __y)
__result.append(__result2)
finally:
del __result2, __x, __y
finally:
del __i
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue10544>
_______________________________________
More information about the Python-bugs-list
mailing list