hasattr(x, y)
This is equivalent to the Python hasattr function.
i1 : foo = pythonValue "'Hello, world!'" o1 = Hello, world! o1 : PythonObject of class str
i2 : hasattr(foo, "upper") o2 = true
i3 : hasattr(foo, "bar") o3 = false
The object hasattr is a method function.