lazy evaluation is sometimes too lazy... help please.

Boris Borcic bborcic at gmail.com
Fri Jan 16 05:46:17 EST 2009


>    itlist[i] = (x+(i*10) for i,s in (i,count()) for x in s)

oops, that would be

      itlist[i] = (x+(i*10) for i,s in [(i,count())] for x in s)

or equivalent, kind of ugly anyway.




More information about the Python-list mailing list