isinstance {XRPython} | R Documentation |
Test if a Proxy Object is an Instance of a Python Type
Description
Applies the Python function isinstance()
to object
. NOTE: this function should be used to test inheritance on the Python side,
even if there are proxy classes for everything involved. It is not true (with the present version of the package) that inheritance in Python
corresponds to inheritance in R for the proxy classes.
Usage
isinstance(object, type, .ev = RPython())
Arguments
object |
Any object. The function returns |
type |
A character string corresponding to the Python type (not to the name of a proxy class for the type). A Python error will result
if there is no such type, or if |
.ev |
an XRPython evaluator, by default and usually the current evaluator. |