[Python-ideas] PEP 479: Change StopIteration handling inside generators

Chris Angelico rosuav at gmail.com
Wed Nov 19 23:58:43 CET 2014


On Thu, Nov 20, 2014 at 9:57 AM, Chris Angelico <rosuav at gmail.com> wrote:
> Since generators can distinguish yield from
> return, they don't need to distinguish return from raise.

Bad grammar, should edit before posting. Since generators can
distinguish value from no value by using yield and return, they don't
need to use yield and raise.

ChrisA


More information about the Python-ideas mailing list