Author pitrou
Recipients ncoghlan, pitrou
Date 2013-05-08.11:54:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think we may want to add a finalize() or close() method on frame objects which would clear all local variables (as well as dereference the globals dict, perhaps), after having optionally run a generator's close() method (if the frame belongs to a generator).

If I'm not mistaken, it should allow breaking reference cycles, and remove the need for complex traceback processing, which Twisted currently also does:

Note that generator cleanup through the frame has a patch in issue17807.

(spinned off from issue17911)
Date User Action Args
2013-05-08 11:54:02pitrousetrecipients: + pitrou, ncoghlan
2013-05-08 11:54:02pitrousetmessageid: <>
2013-05-08 11:54:02pitroulinkissue17934 messages
2013-05-08 11:54:01pitroucreate