We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3f4ae commit 77c4fd0Copy full SHA for 77c4fd0
1 file changed
Doc/c-api/typeobj.rst
@@ -745,6 +745,11 @@ type objects) *must* have the :attr:`ob_size` field.
745
This field is not inherited by subtypes (though the attributes defined in here
746
are inherited through a different mechanism).
747
748
+ .. warning::
749
+
750
+ It is not safe to use :c:func:`PyDict_SetItem` on or otherwise modify
751
+ :attr:`tp_dict` with the dictionary C-API.
752
753
754
.. c:member:: descrgetfunc PyTypeObject.tp_descr_get
755
0 commit comments