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 
issue25698).

----------
assignee: docs@python
components: Documentation
messages: 255130
nosy: docs@python, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Document that tp_setattro and tp_setattr are used for deleting attributes
type: crash
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to