[issue26528] NameError for built in function open when re-raising stored exception from yielded function
reidfaiv
report at bugs.python.org
Thu Mar 10 09:17:02 EST 2016
reidfaiv added the comment:
Indeed, explicitly closing generator helps, following works:
def run(**kwargs):
g = event_gen(**kwargs)
r = next(g)
g.close()
r()
Thanks!
Do you want to keep this issue open for investigation?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26528>
_______________________________________
More information about the Python-bugs-list
mailing list