Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a03ec20 commit 61dd77bCopy full SHA for 61dd77b
1 file changed
Doc/c-api/object.rst
@@ -47,9 +47,8 @@ Object Protocol
47
48
.. c:function:: int PyObject_HasAttr(PyObject *o, PyObject *attr_name)
49
50
- Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
51
- is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
52
- always succeeds.
+ Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise.
+ This function always succeeds.
53
54
.. note::
55
0 commit comments