PyObject.getAttr(String) and PyObject.setAttr(String, Object) instead.@Deprecated public class PyModule extends PyObject
| Constructor and Description |
|---|
PyModule(long tstate,
long obj,
Jep jep)
Deprecated.
Creates a new
PyModule instance. |
| Modifier and Type | Method and Description |
|---|---|
PyModule |
createModule(java.lang.String name)
Deprecated.
Create a python module on the interpreter.
|
java.lang.Object |
getValue(java.lang.String str)
Deprecated.
Retrieves a value from python.
|
public PyModule(long tstate,
long obj,
Jep jep)
throws JepException
PyModule instance.tstate - a long valueobj - a long valuejep - a Jep valueJepException - if an error occurspublic PyModule createModule(java.lang.String name) throws JepException
name - a String valuePyModule valueJepException - if an error occurspublic java.lang.Object getValue(java.lang.String str)
throws JepException
eval("a = 5")
String a = (String) getValue("a")
will work.str - a String valueObject valueJepException - if an error occurs