Benjamin Peterson  committed 6ef6551

note mutating tp_dict is bad (closes #12719)

  • Participants
  • Parent commits 7ea5d9c
  • Branches 3.2

Comments (0)

Files changed (1)

File Doc/c-api/typeobj.rst

    This field is not inherited by subtypes (though the attributes defined in here
    are inherited through a different mechanism).
+   .. warning::
+      It is not safe to use :c:func:`PyDict_SetItem` on or otherwise modify
+      :attr:`tp_dict` with the dictionary C-API.
 .. c:member:: descrgetfunc PyTypeObject.tp_descr_get