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 mark.dickinson
Recipients konrad.schwarz, mark.dickinson, pitrou
Date 2021-03-03.18:45:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614797120.35.0.630411948594.issue43383@roundup.psfhosted.org>
In-reply-to
Content
Have you tried doing a "gc.get_referrers" on your weakref, to verify that there aren't any references that you don't expect to be there?

Another diagnostic would be to run with cyclic garbage collection disabled (via gc.disable). If you're seeing different behaviour with gc disabled versus enabled, that would at least confirm the presence of reference cycles.

> Are local variables/stack frames cleaned lazily? Is the last accessed
> value of a dictionary cached internally, increasing its reference count?

My knowledge of current Python internals isn't as deep as it used to be, but I'd be quite surprised if either of these were true.
History
Date User Action Args
2021-03-03 18:45:20mark.dickinsonsetrecipients: + mark.dickinson, pitrou, konrad.schwarz
2021-03-03 18:45:20mark.dickinsonsetmessageid: <1614797120.35.0.630411948594.issue43383@roundup.psfhosted.org>
2021-03-03 18:45:20mark.dickinsonlinkissue43383 messages
2021-03-03 18:45:20mark.dickinsoncreate