mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
fix param type in PyObject_HasAttrWithError (docs) (#127403)
This commit is contained in:
parent
322b486010
commit
3afb639f39
1 changed files with 1 additions and 1 deletions
|
@ -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)``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue