py_has_attr {reticulate}R Documentation

Check if a Python object has an attribute

Description

Check if a Python object has an attribute

Usage

py_has_attr(x, name)

Arguments

x

Python object

name

Attribute name

Value

Logical indicating whether it has the specified attribute


[Package reticulate version 1.0 Index]