This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author reidfaiv
Recipients martin.panter, reidfaiv
Date 2016-03-10.14:17:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457619422.07.0.458394959909.issue26528@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-03-10 14:17:02reidfaivsetrecipients: + reidfaiv, martin.panter
2016-03-10 14:17:02reidfaivsetmessageid: <1457619422.07.0.458394959909.issue26528@psf.upfronthosting.co.za>
2016-03-10 14:17:02reidfaivlinkissue26528 messages
2016-03-10 14:17:02reidfaivcreate