summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-09 21:15:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-09 21:15:29 (GMT)
commit9aae3a8cf557256e1f7a46f0ba19581949b5a805 (patch)
treec3badac5a2b4840ea8ed62d12dbb01740c273336 /Doc/c-api
parent832bfe2ebd5ecfa92031cd40c8b41835ba90487f (diff)
parent77c4fd01dd3fa9b7830ca3dcd1506565352d32f3 (diff)
downloadcpython-9aae3a8cf557256e1f7a46f0ba19581949b5a805.zip
cpython-9aae3a8cf557256e1f7a46f0ba19581949b5a805.tar.gz
cpython-9aae3a8cf557256e1f7a46f0ba19581949b5a805.tar.bz2
merge 3.2 (#12719)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/typeobj.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index 4a6335c..68ca9ad 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -745,6 +745,11 @@ type objects) *must* have the :attr:`ob_size` field.
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