[issue22988] No error when yielding from `finally`

Guido van Rossum report at bugs.python.org
Wed Dec 3 19:38:03 CET 2014


Guido van Rossum added the comment:

There is no prohibition in the language against yield in a finally block. It may not be a good idea, but the behavior you see is all as it should be.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22988>
_______________________________________


More information about the Python-bugs-list mailing list