[Python-Dev] PEP 380 (yield from a subgenerator) comments

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 28 22:37:43 CET 2009

Guido van Rossum wrote:

>>> I think in either case a check in
>>> PyIter_Next() would cover most cases
>>If that's acceptable, then the check might as well
>>be for None as the StopIteration value, and there's
>>no need for a new exception.
> I don't understand this.

Maybe I misunderstood what you were saying. What
check were you suggesting to perform in PyIter_Next?


More information about the Python-Dev mailing list