|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.core.PyModule
public class PyModule
The Python Module object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary | |
---|---|
PyObject |
__dict__
The module's mutable dictionary |
Fields inherited from class org.python.core.PyObject |
---|
TYPE |
Constructor Summary | |
---|---|
PyModule()
|
|
PyModule(PyType subType)
|
|
PyModule(PyType subType,
String name)
|
|
PyModule(String name)
|
|
PyModule(String name,
PyObject dict)
|
Method Summary | |
---|---|
void |
__delattr__(String name)
A variant of the __delattr__ method which accepts a String as the key. |
PyObject |
__dir__()
Equivalent to the standard Python __dir__ method. |
void |
__setattr__(String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
void |
delDict()
|
PyObject |
fastGetDict()
xxx implements where meaningful |
PyObject |
getDict()
xxx implements where meaningful |
void |
setDict(PyObject newDict)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PyObject __dict__
Constructor Detail |
---|
public PyModule()
public PyModule(PyType subType)
public PyModule(PyType subType, String name)
public PyModule(String name)
public PyModule(String name, PyObject dict)
Method Detail |
---|
public PyObject fastGetDict()
PyObject
fastGetDict
in class PyObject
public PyObject getDict()
PyObject
getDict
in class PyObject
public void setDict(PyObject newDict)
setDict
in class PyObject
public void delDict()
delDict
in class PyObject
public void __setattr__(String name, PyObject value)
PyObject
__setattr__
in class PyObject
name
- the name whose value will be set -
must be an interned string .value
- the value to set this name toPyObject.__setattr__(PyString, PyObject)
public void __delattr__(String name)
PyObject
__delattr__(PyString name)
with the appropriate args.
The only reason to override this method is for performance.
__delattr__
in class PyObject
name
- the name which will be removed -
must be an interned string .PyObject.__delattr__(PyString)
public String toString()
toString
in class PyObject
public PyObject __dir__()
PyObject
__dir__
in class PyObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |