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 <[email protected]>
<http://bugs.python.org/issue26528>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com