Fengyang Wang added the comment:
It looks like this is a duplicate of http://bugs.python.org/issue11796
Sorry for the noise.
--
resolution: -> duplicate
___
Python tracker
<http://bugs.python.org/issu
Fengyang Wang added the comment:
By the way, in Python 2.7 at least, this was working.
--
___
Python tracker
<http://bugs.python.org/issue30577>
___
___
Python-bug
New submission from Fengyang Wang:
Reduced reproduction:
class X:
r = [1, 2, 3]
z = [(i, j) for i in [4, 5] for j in r]
fails with "NameError: name 'r' is not defined". The expected behavior would be
for r to be resolved as the r in the class namespace. Note in co