The tp_setattro description here: https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_setattro
defines the return type of the method as PyObject * when it is in fact "int" Please correct
Thanks - Rob
DISCLAIMER: This e-mail message and any attachments are intended solely for the use of the individual or entity to which it is addressed and may contain information that is confidential or legally privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and permanently delete this message and any attachments.
On 5/7/20 4:45 PM, Ambalu, Robert wrote:
The tp_setattro description here:
defines the return type of the method as PyObject * when it is in fact “int”
Thanks a lot for reporting!
This has already been fixed in https://github.com/python/cpython/pull/17251, so it's fixed for Python 3.9, see: https://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_setattro
I may to backport this fix to 3.7 and 3.8 as the automatic backport failed.