From: Benjamin Peterson Date: Mon, 6 Oct 2014 01:20:36 +0000 (-0400) Subject: PyObject not PyType (closes #18494) X-Git-Tag: v3.5.0a1~748^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c262a6c7583d8e8cc278e6119dedf43e41c77be;p=python PyObject not PyType (closes #18494) --- diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 3e7c3b64c4..7c2f6d525c 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -101,7 +101,7 @@ Object Protocol This is the equivalent of the Python statement ``del o.attr_name``. -.. c:function:: PyObject* PyType_GenericGetDict(PyObject *o, void *context) +.. c:function:: PyObject* PyObject_GenericGetDict(PyObject *o, void *context) A generic implementation for the getter of a ``__dict__`` descriptor. It creates the dictionary if necessary. @@ -109,7 +109,7 @@ Object Protocol .. versionadded:: 3.3 -.. c:function:: int PyType_GenericSetDict(PyObject *o, void *context) +.. c:function:: int PyObject_GenericSetDict(PyObject *o, void *context) A generic implementation for the setter of a ``__dict__`` descriptor. This implementation does not allow the dictionary to be deleted.