Questions/issues regarding generators

Andreas Rossberg rossberg at
Thu Mar 7 08:39:23 PST 2013

On 7 March 2013 16:37, Andreas Rossberg <rossberg at> wrote:
> But, in order to (hopefully) let Brandon calm down a bit, I am NOT making
> yet another proposal for a two-method protocol. Instead I propose
> simply _delivering_ a sentinel object as end-of-iteration marker
> instead of _throwing_ one.

Forgot to mention one detail: under this approach, it should of course
be a runtime error if yield is applied to a value that is a
StopIteration object.


More information about the es-discuss mailing list