From: biggus-developerus <74741815+biggus-developerus@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:53:34 +0000 (+0400) Subject: fix param type in PyObject_HasAttrWithError (docs) (#127403) X-Git-Tag: v3.14.0a3~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3afb639f39e89888194d8e74cc498c8da3a58d8e;p=thirdparty%2FPython%2Fcpython.git fix param type in PyObject_HasAttrWithError (docs) (#127403) --- diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 2ac975ff7d1a..1ae3c46bea46 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -85,7 +85,7 @@ Object Protocol instead of the :func:`repr`. -.. c:function:: int PyObject_HasAttrWithError(PyObject *o, const char *attr_name) +.. c:function:: int PyObject_HasAttrWithError(PyObject *o, PyObject *attr_name) Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This is equivalent to the Python expression ``hasattr(o, attr_name)``.