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

2010-08-01 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 t

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 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 > a "yield From()

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 wrote: On Sun, Aug 1, 2010 at 3:54 AM, Greg Ewing <greg.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 management and analy

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

2010-08-01 Thread Kevin Jacobs
On Sun, Aug 1, 2010 at 3:54 AM, Greg Ewing wrote: > 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 perform efficient comput

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

2010-08-01 Thread Greg Ewing
I have updated my prototype yield-from implementation to work with Python 3.1.2. I've also fixed a small bug that was affecting one of the corner cases concerning exceptions thrown into a subgenerator. Interested parties can obtain it here: http://www.cosc.canterbury.ac.nz/greg.ewing/python/yie