We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28097db commit c395f45Copy full SHA for c395f45
Doc/c-api/object.rst
@@ -137,6 +137,16 @@ Object Protocol
137
.. versionadded:: 3.3
138
139
140
+.. c:function:: PyObject** _PyObject_GetDictPtr(PyObject *obj)
141
+
142
+ Return a pointer to :py:attr:`~object.__dict__` of the object *obj*.
143
+ If there is no ``__dict__``, return ``NULL`` without setting an exception.
144
145
+ Calling this function` may need to allocate memory for the
146
+ dictionary, so it is may be more efficient to call :c:func:`PyObject_GetAttr`
147
+ when accessing an attribute on the object.
148
149
150
.. c:function:: PyObject* PyObject_RichCompare(PyObject *o1, PyObject *o2, int opid)
151
152
Compare the values of *o1* and *o2* using the operation specified by *opid*,
0 commit comments