[Python-Dev] Tricky way of of creating a generator via a comprehension expression

Antoine Pitrou antoine at python.org
Thu Nov 23 07:12:06 EST 2017


Le 23/11/2017 à 13:01, Ivan Levkivskyi a écrit :
> 
> "I don't use it, therefore it is not needed"  is a great argument, thanks.

This is just a data point.  Some people seem to think that the construct
is useful for asynchronous programming.  In my experience it isn't.
YMMV, etc.

> Lets just forget about two SO questions and dozens people who up-voted it.

Just because someone asks a question doesn't mean they have a pressing
use case.  People are curious and will try constructs just for the sake
it.  Today I looked up the Wikipedia page for Gregorian chant.  Did I
have a use case for it?  No, I was just curious.

Regards

Antoine.


More information about the Python-Dev mailing list