[docs] [issue25701] Document that tp_setattro and tp_setattr are used for deleting attributes

Serhiy Storchaka report at bugs.python.org
Mon Nov 23 01:58:24 EST 2015


New submission from Serhiy Storchaka:

tp_setattro and tp_setattr fields of PyTypeObject are used for deleting attributes. In this case the third argument is NULL. This should be documented. Not awareness of this can cause a segmentation fail (for example see issue25691).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25701>
_______________________________________


More information about the docs mailing list