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 kristjan.jonsson, pitrou, vstinner
Date 2013-05-13.10:26:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <776350391.35651192.1368440785246.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <1368440483.31.0.308483973083.issue17936@psf.upfronthosting.co.za>
Content
> The second one is when the class is being deleted, for housekeeping
> of the weakrefs.
> I worry that your alternative will cause us to walk the entire list
> in the second case because it will be called when the weakref has
> been cleared, so  it will never find itself in the list, only None.

I don't think that matters much. In both cases the expected complexity
is O(n).
History
Date User Action Args
2013-05-13 10:26:31pitrousetrecipients: + pitrou, kristjan.jonsson, vstinner
2013-05-13 10:26:31pitroulinkissue17936 messages
2013-05-13 10:26:31pitroucreate