[Python-Dev] Re: generator expressions

Bob Ippolito bob at redivi.com
Sat Apr 24 11:02:55 EDT 2004

On Apr 24, 2004, at 10:58 AM, Peter Harris wrote:

> Michael Chermside wrote:
>> How do we go about asking
>> people to try it out (is a mention by Guido on comp.lang.python
>> sufficient)?
>> -- Michael Chermside
> I'll play with generator expressions gladly. I have been using list 
> comprehensions like mad, even in cases where I suspect a generator 
> would be better. Also, I have a few uses of generators that might look 
> clearer as generator expressions. So I'd be more than happy to make a 
> test version of my current projects using generator expressions, just 
> to see when they can make the code clearer, and whether there is 
> anything about the semantics that trips me up too easily.
> I don't think my data sets are going to be big enough to test 
> performance, just usability.
> Now, if someone checks in the implementation of PEP309 too <hint>, I 
> would be as happy as a biscuit...

Well, I'm +1 on PEP309.  I regularly wish I had partial function 
application in Python.  I also plan to experiment with generator 
expressions sooner than later.


More information about the Python-Dev mailing list