[Python-Dev] problem with recursive "yield from" delegation
Nick Coghlan
ncoghlan at gmail.com
Thu Mar 8 13:04:07 CET 2012
On Thu, Mar 8, 2012 at 9:52 PM, Mark Shannon <mark at hotpy.org> wrote:
> I would recommend changing one of two things in the PEP:
> Either, close and throw should not close/throw in subiterators
> (this would simplify the semantics and implementation immensely)
> Or, only allow subgenerators, not subiterators
> (this would fix the next/send problem).
Either of those changes would completely defeat the point of the PEP.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list