Re: [Python-Dev] yield from, user defined iterators, and StopIteration w/ a value...

2012-08-06 Thread Nick Coghlan
On Tue, Aug 7, 2012 at 10:02 AM, Benjamin Peterson wrote: > 2012/8/6 Dino Viehland : >> I'm trying to create an object which works like a generator and delegates to >> a generator for its implementation, but can also participate in yield from >> using 3.3 beta. I want my wrapper object to be ab

Re: [Python-Dev] yield from, user defined iterators, and StopIteration w/ a value...

2012-08-06 Thread Benjamin Peterson
2012/8/6 Dino Viehland : > I'm trying to create an object which works like a generator and delegates to > a generator for its implementation, but can also participate in yield from > using 3.3 beta. I want my wrapper object to be able to cache some additional > information - such as whether or

[Python-Dev] yield from, user defined iterators, and StopIteration w/ a value...

2012-08-06 Thread Dino Viehland
I'm trying to create an object which works like a generator and delegates to a generator for its implementation, but can also participate in yield from using 3.3 beta. I want my wrapper object to be able to cache some additional information - such as whether or not the generator has completed -