mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
[3.13] fix param type in PyObject_HasAttrWithError (docs) (GH-127403) (#127404)
fix param type in PyObject_HasAttrWithError (docs) (GH-127403)
(cherry picked from commit 3afb639f39
)
Co-authored-by: biggus-developerus <74741815+biggus-developerus@users.noreply.github.com>
This commit is contained in:
parent
47b0f8f297
commit
92d14b7fab
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ Object Protocol
|
||||||
instead of the :func:`repr`.
|
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.
|
Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
|
||||||
This is equivalent to the Python expression ``hasattr(o, attr_name)``.
|
This is equivalent to the Python expression ``hasattr(o, attr_name)``.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue