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 Nils.Bruin
Recipients Nils.Bruin, vbraun
Date 2013-04-23.01:50:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366681811.76.0.777574795054.issue17816@psf.upfronthosting.co.za>
In-reply-to
Content
I think the difference in behaviour between Py3 and Py2 is coming from:

http://hg.python.org/cpython/file/a26df2d03989/Objects/dictobject.c#l1275

which first clears all values before removing any keys. For a WeakValueDictionary that means all the weakrefs are neutralized before the can be activated. I don't quite understand how Py3 manages to avoid problems for a WeakKeyDictionary, but apparently it does.
History
Date User Action Args
2013-04-23 01:50:11Nils.Bruinsetrecipients: + Nils.Bruin, vbraun
2013-04-23 01:50:11Nils.Bruinsetmessageid: <1366681811.76.0.777574795054.issue17816@psf.upfronthosting.co.za>
2013-04-23 01:50:11Nils.Bruinlinkissue17816 messages
2013-04-23 01:50:11Nils.Bruincreate