PEP 3107 and stronger typing (note: probably a newbie question)

Paul Rubin http
Sun Jul 8 08:20:22 CEST 2007

Steve Holden <steve at> writes:
> > Python even leaks the index variable of list comprehensions (I've
> > mostly stopped using them because of this), though that's a
> > recognized wart and is due to be fixed.
> >
> Wow, you really take non-pollution of the namespace seriously. I agree
> it's a wart, but it's one I have happily worked around since day one.

Well, the obvious workaround is just say "list(<some genexp>)"
instead of [<the same genexp>] so that's what I do.

More information about the Python-list mailing list