Get an item from a Python object
Retrieve an item from a Python object, similar to how
x[name]
might be used in Python code to access an
item indexed by key
on an object x
. The object's
__getitem__
method will be called.
py_get_item(x, key, silent = FALSE)
x |
A Python object. |
key |
The key used for item lookup. |
silent |
Boolean; when |
Other item-related APIs:
py_del_item()
,
py_set_item()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.