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 arigo
Recipients arigo, fdrake, pitrou, serhiy.storchaka, tim.peters
Date 2016-12-05.09:58:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480931926.38.0.135309757706.issue28427@psf.upfronthosting.co.za>
In-reply-to
Content
issue28427-atomic.patch: is it still necessary to modify weakref.py so much, then?

What I had in mind was a C function with Python signature "del_if_equal(dict, key, value)"; the C function doesn't need to know about weakrefs and checking if they are dead.  The C function would simply call PyObject_GetItem() and PyObject_DelItem()---without releasing the GIL in the middle.
History
Date User Action Args
2016-12-05 09:58:46arigosetrecipients: + arigo, tim.peters, fdrake, pitrou, serhiy.storchaka
2016-12-05 09:58:46arigosetmessageid: <1480931926.38.0.135309757706.issue28427@psf.upfronthosting.co.za>
2016-12-05 09:58:46arigolinkissue28427 messages
2016-12-05 09:58:46arigocreate