Message282407
| 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. |
|