Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3afb639

Browse files
fix param type in PyObject_HasAttrWithError (docs) (#127403)
1 parent 322b486 commit 3afb639

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Object Protocol
8585
instead of the :func:`repr`.
8686
8787
88-
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, const char *attr_name)
88+
.. c:function:: int PyObject_HasAttrWithError(PyObject *o, PyObject *attr_name)
8989
9090
Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
9191
This is equivalent to the Python expression ``hasattr(o, attr_name)``.

0 commit comments

Comments
 (0)