[Python-ideas] Revert "RuntimeError: generator raised StopIteration"

Ethan Furman ethan at stoneleaf.us
Mon Sep 17 14:24:22 EDT 2018

On 09/17/2018 11:06 AM, Danilo J. S. Bellini wrote:

> The idea is simple: restore the "next" built-in and the "StopIteration" propagation behavior from Python 3.6.

Unlikely to happen.  In 3.6 a deprecation warning started being issued for next inside generators that said it would 
raise a different exception in 3.7 [1].


[1] PEP 479: https://docs.python.org/3/whatsnew/3.5.html#whatsnew-pep-479

More information about the Python-ideas mailing list