Check whether a Python object x has an attribute name.

py_has_attr(x, name)

Arguments

x

A python object.

name

The attribute to be accessed.

Value

TRUE if the object has the attribute name, and FALSE otherwise.