diff options
author | biggus-developerus <74741815+biggus-developerus@users.noreply.github.com> | 2024-11-29 10:53:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-29 10:53:34 (GMT) |
commit | 3afb639f39e89888194d8e74cc498c8da3a58d8e (patch) | |
tree | afff02570a44afadb0e9cc5c5a5233431d776258 | |
parent | 322b486010095f89271fba51b4b23c35d87c0595 (diff) | |
download | cpython-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.rst | 2 |
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)``. |