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 vstinner
Recipients pitrou, vstinner
Date 2013-12-03.23:11:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386112276.47.0.0214056129322.issue19880@psf.upfronthosting.co.za>
In-reply-to
Content
contextmanager_leak2.py: even simpler example, storing a current frame in a local variable of the frame is enough.

generator_workaround.patch is another workaround: call frame.clear() when at generator exit to explicitly break the reference cycle.
History
Date User Action Args
2013-12-03 23:11:16vstinnersetrecipients: + vstinner, pitrou
2013-12-03 23:11:16vstinnersetmessageid: <1386112276.47.0.0214056129322.issue19880@psf.upfronthosting.co.za>
2013-12-03 23:11:16vstinnerlinkissue19880 messages
2013-12-03 23:11:16vstinnercreate