We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 322b486 commit 3afb639Copy full SHA for 3afb639
Doc/c-api/object.rst
@@ -85,7 +85,7 @@ Object Protocol
85
instead of the :func:`repr`.
86
87
88
-.. c:function:: int PyObject_HasAttrWithError(PyObject *o, const char *attr_name)
+.. c:function:: int PyObject_HasAttrWithError(PyObject *o, PyObject *attr_name)
89
90
Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
91
This is equivalent to the Python expression ``hasattr(o, attr_name)``.
0 commit comments