https://github.com/python/cpython/commit/3afb639f39e89888194d8e74cc498c8da3a58d8e
commit: 3afb639f39e89888194d8e74cc498c8da3a58d8e
branch: main
author: biggus-developerus
<[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2024-11-29T10:53:34Z
summary:
fix param type in PyObject_HasAttrWithError (docs) (#127403)
files:
M Doc/c-api/object.rst
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 2ac975ff7d1a59..1ae3c46bea46ea 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)``.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]