[[.PythonReference {RSPython} | R Documentation |
~~ A concise (1-5 lines) description of what the function does. ~~
[[.PythonReference(x, i, ..., .convert=T)
x |
the PythonReference object in which to find the field
named name . |
i |
a character vector specifiying the name of the field to retrieve. |
... |
ignored, but present for compatability with the generic. |
.convert |
a logical value indicating whether to attempt to convert the resulting Python object to R (TRUE) or leave as a reference (FALSE) |
The value of the Python field
named name
in the specified object,
converted to an R object or exported to
R as a reference to the Python object.
One can get the names of the different
fields that are accessible in a Python reference
x
using the command
x[["__dict__", .convert=F]]$keys()
Duncan Temple Lang
http://www.omegahat.org/RSPython, http://www.python.org
p <- .PythonNew("SDefsParser", "foo.defs", .module="Sgenerate") p[["functions"]] p[["__dict__", .convert=F]]$keys()