There's a proof of concept patch in http://bugs.python.org/issue22906, but it doesn't have the __future__ import and probably gets other details wrong.
Reference: PEP 479 -- Change StopIteration handling inside generators <https://www.python.org/dev/peps/pep-0479/> -- --Guido van Rossum (python.org/~guido)
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com