py_has_attr: Check if a Python object has an attribute

View source: R/python.R

py_has_attrR Documentation

Check if a Python object has an attribute

Description

Check whether a Python object x has an attribute name.

Usage

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.


reticulate documentation built on Oct. 13, 2023, 1:08 a.m.