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 pitrou
Recipients exarkun, facundobatista, gvanrossum, pitrou, rhettinger, vstinner
Date 2011-05-05.15:50:09
SpamBayes Score 3.171393e-06
Marked as misclassified No
Message-id <1304610610.37.0.419137419206.issue6116@psf.upfronthosting.co.za>
In-reply-to
Content
> Making a copy of f_locals values to return a dictionary that doesn't 
> hold references to the locals of the frame is not that simple

I think you misunderstood the bug report. The issue here is not that locals are referenced from the dict, it's that the dict is kept alive (since it is cached) longer that it should.

By the way, reading the discussion again, I think we could simply make dicts weak-referenceable. A dict is already quite big in memory and I don't think adding a pointer to the struct would make a significant difference.
History
Date User Action Args
2011-05-05 15:50:10pitrousetrecipients: + pitrou, gvanrossum, rhettinger, facundobatista, exarkun, vstinner
2011-05-05 15:50:10pitrousetmessageid: <1304610610.37.0.419137419206.issue6116@psf.upfronthosting.co.za>
2011-05-05 15:50:09pitroulinkissue6116 messages
2011-05-05 15:50:09pitroucreate