Jonathan Hartley <tart...@tartley.com> added the comment: Is also exhibited by other class variable being used in the 'output' clause of the list comprehension:
>>> class C: ... x = 3 ... z = [z*x for z in range(4)] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 3, in C File "<stdin>", line 3, in <listcomp> ---------- nosy: +jonathan.hartley versions: +Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11796> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com