Checks if x is a Python object, more efficiently than inherits(x, "python.builtin.object").

is_py_object(x)

Arguments

x

An R or Python.

Value

TRUE or FALSE.