mirror of https://github.com/python/cpython
fix param type in PyObject_HasAttrWithError (docs) (#127403)
This commit is contained in:
parent
322b486010
commit
3afb639f39
|
@ -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…
Reference in New Issue