Facundo Batista added the comment: Don't follow you: >>> class C: a = 42 list(a for _ in 'x') >>> Works here! (Python 2.5.1 on win32) ---------- nosy: +facundobatista __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1863> __________________________________