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 serhiy.storchaka
Recipients gvanrossum, martin.panter, ncoghlan, serhiy.storchaka
Date 2015-12-01.15:44:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448984668.36.0.0444302662987.issue25773@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-12-01 15:44:28serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, ncoghlan, martin.panter
2015-12-01 15:44:28serhiy.storchakasetmessageid: <1448984668.36.0.0444302662987.issue25773@psf.upfronthosting.co.za>
2015-12-01 15:44:28serhiy.storchakalinkissue25773 messages
2015-12-01 15:44:27serhiy.storchakacreate