Re: Problem with generator expression and class definition

2007-12-07 Thread Michael Spencer
Terry Reedy wrote: > "Maric Michaud" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > |I faced a strange behavior with generator expression, which seems like a > bug, for both > | python 2.4 and 2.5 : > > Including the latest release (2.5.2)? > > | >>> class A : > | ... a = 1

Re: Problem with generator expression and class definition

2007-12-07 Thread Terry Reedy
"Maric Michaud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I faced a strange behavior with generator expression, which seems like a bug, for both | python 2.4 and 2.5 : Including the latest release (2.5.2)? | >>> class A : | ... a = 1, 2, 3 | ... b = 1, 2, 3 | ...

Problem with generator expression and class definition

2007-12-07 Thread Maric Michaud
I faced a strange behavior with generator expression, which seems like a bug, for both python 2.4 and 2.5 : >>> class A : ... a = 1, 2, 3 ... b = 1, 2, 3 ... C = list((e,f) for e in a for f in b) ... Traceback (most recent call last): File "", line 1, in File "", line 4, in A