[Python-3000] Is this a bug with list comprehensions or not?

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 13 01:52:54 CEST 2008

Terry Reedy wrote:

> To me, it is more important that list(genexp) == corresponding_listcomp 
> than that the definition of genexp be minimal.

Then listcomps would also have to catch StopIterations
and transmute them correspondingly.

This seems like a lot of trouble to go to in order to
fix a rather obscure problem. Is it really a serious
enough problem in practice? Anyone have any real-life
stories about this?


More information about the Python-3000 mailing list