Check if a Python object has an attribute
Check whether a Python object x
has an attribute
name
.
py_has_attr(x, name)
x |
A python object. |
name |
The attribute to be accessed. |
TRUE
if the object has the attribute name
, and
FALSE
otherwise.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.