Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-02 Thread P.J. Eby
At 09:24 PM 8/1/2010 -0700, Guido van Rossum wrote: I don't understand all the details and corner cases (e.g. the concatenation of stacks It's just to ensure that you never have From's iterating over other From's, vs. just iterating whatever's at the top of the stack. which seems to have

Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread Kevin Jacobs jac...@bioinformed.com
On Sun, Aug 1, 2010 at 3:54 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote: I have updated my prototype yield-from implementation to work with Python 3.1.2. My work is primarily on the management and analysis of huge genomics datasets. I use Python generators extensively and intensively to

Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread P.J. Eby
At 08:49 AM 8/1/2010 -0400, Kevin Jacobs jac...@bioinformed.com wrote: On Sun, Aug 1, 2010 at 3:54 AM, Greg Ewing mailto:greg.ew...@canterbury.ac.nzgreg.ew...@canterbury.ac.nz wrote: I have updated my prototype yield-from implementation to work with Python 3.1.2. My work is primarily on the

Re: [Python-Dev] Yield-From Implementation Updated for Python 3

2010-08-01 Thread Guido van Rossum
On Sun, Aug 1, 2010 at 11:16 AM, P.J. Eby p...@telecommunity.com wrote: Just so you know, you don't need to wait for this to be added to Python in order to have such a construct; it just won't have the extra syntax sugar.  See the sample code I posted here using a @From.container decorator, and