Message187603
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. |
|
Date |
User |
Action |
Args |
2013-04-23 01:50:11 | Nils.Bruin | set | recipients:
+ Nils.Bruin, vbraun |
2013-04-23 01:50:11 | Nils.Bruin | set | messageid: <1366681811.76.0.777574795054.issue17816@psf.upfronthosting.co.za> |
2013-04-23 01:50:11 | Nils.Bruin | link | issue17816 messages |
2013-04-23 01:50:11 | Nils.Bruin | create | |
|