Message255655
If the third argument of PyObject_SetAttr(), PyObject_SetAttrString() or PySequence_SetItem() is NULL, these functions delete an attribute or an item. This is rather undocumented implementation detail. There are special counterparts for deleting: PyObject_DelAttr(), PyObject_DelAttrString() and PySequence_DelItem(). May be worth to depre
Proposed patch deprecates using these Set* functions for deleting and replaces them with appropriate Del* functions if needed.
Discussion on Python-Dev: http://comments.gmane.org/gmane.comp.python.devel/155474
Issue that documents deleting with Set* APIs: issue25701. |
|
Date |
User |
Action |
Args |
2015-12-01 15:44:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, ncoghlan, martin.panter |
2015-12-01 15:44:28 | serhiy.storchaka | set | messageid: <1448984668.36.0.0444302662987.issue25773@psf.upfronthosting.co.za> |
2015-12-01 15:44:28 | serhiy.storchaka | link | issue25773 messages |
2015-12-01 15:44:27 | serhiy.storchaka | create | |
|