py_set_item: Set an item for a Python object

Description Usage Arguments Value See Also

View source: R/python.R

Description

Set an item on a Python object, similar to how x[name] = value might be used in Python code to set an item called name with value value on object x. The object's __setitem__ method will be called.

Usage

1
py_set_item(x, name, value)

Arguments

x

A Python object.

name

The item name.

value

The item value.

Value

The (mutated) object x, invisibly.

See Also

Other item-related APIs: py_del_item, py_get_item


Mormukut11/R-interface-to-Python documentation built on May 21, 2019, 9:36 a.m.