[Python-Dev] PEP Idea: Syntactic sugar for StopIteration.

Phillip J. Eby pje at telecommunity.com
Sun Dec 9 01:06:19 CET 2007


At 12:30 PM 12/9/2007 +1300, Greg Ewing wrote:
>Terry Reedy wrote:
> > I would prefer plain 'yield' to 'yield break' as a synonym for 'raise
> > StopIteration'.
>
>Don't we already have a plain yield these days meaning
>something else?

Yes.  It's equivalent to 'yield None'. 



More information about the Python-Dev mailing list