summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbiggus-developerus <74741815+biggus-developerus@users.noreply.github.com>2024-11-29 10:53:34 (GMT)
committerGitHub <noreply@github.com>2024-11-29 10:53:34 (GMT)
commit3afb639f39e89888194d8e74cc498c8da3a58d8e (patch)
treeafff02570a44afadb0e9cc5c5a5233431d776258
parent322b486010095f89271fba51b4b23c35d87c0595 (diff)
downloadcpython-3afb639f39e89888194d8e74cc498c8da3a58d8e.zip
cpython-3afb639f39e89888194d8e74cc498c8da3a58d8e.tar.gz
cpython-3afb639f39e89888194d8e74cc498c8da3a58d8e.tar.bz2
fix param type in PyObject_HasAttrWithError (docs) (#127403)
-rw-r--r--Doc/c-api/object.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 2ac975f..1ae3c46 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)``.