python 2.4 and 2.5 :
.... a = 1, 2, 3>>class A :
.... b = 1, 2, 3
.... C = list((e,f) for e in a for f in b)
....
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 4, in A
File "<stdin>", line 4, in <genexpr>
NameError: global name 'b' is not defined
.... a = 1, 2, 3>>class A :
.... b = 1, 2, 3
.... C = [ (e,f) for e in a for f in b ]
....
[(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)]>>A.C
Any comment ? I'm ready to report it as a bug if there is no objection.