[Python-Dev] PEP 289: Generator Expressions

Raymond Hettinger python at rcn.com
Thu Oct 23 12:04:21 EDT 2003


[Skip Montanaro]
> Valid?  I'll buy that, but it had never occurred to me

It had not occurred to me either.

A moments reflection on the implementation reveals that any lvalue will
work, even a[:].

Rather than twist ourselves into knots trying to find ways to disallow
it, I think it should be left in the realm of things that never occur to
anyone and have never been a real problem.

don't-ask-don't-tell-ly yours,


Raymond 




More information about the Python-Dev mailing list