Package io.deephaven.jpy
Interface BuiltinsModule
- All Superinterfaces:
AutoCloseable
Java proxy module for builtins.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.jpy.PyObject
static BuiltinsModule
create()
org.jpy.PyObject
dict()
Create a new dictionary.org.jpy.PyObject
dir
(org.jpy.PyObject pyObject) Attempt to return a list of valid attributes for that object.org.jpy.PyObject
globals()
int
len
(org.jpy.PyObject pyObject) Get the length (the number of items) of an object.org.jpy.PyObject
locals()
org.jpy.PyObject
memoryview
(org.jpy.PyObject pyObject) Create a memoryview that references obj.
-
Method Details
-
create
-
dir
org.jpy.PyObject dir(org.jpy.PyObject pyObject) Attempt to return a list of valid attributes for that object.- Parameters:
pyObject
- the python object- Returns:
- the list of valid attributes for the object
- See Also:
-
dict
org.jpy.PyObject dict()Create a new dictionary.- Returns:
- the dictionary
- See Also:
-
len
int len(org.jpy.PyObject pyObject) Get the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set).- Parameters:
pyObject
- the python object- Returns:
- the length (the number of items) of an object
- See Also:
-
memoryview
org.jpy.PyObject memoryview(org.jpy.PyObject pyObject) Create a memoryview that references obj. obj must support the buffer protocol.- Parameters:
pyObject
- the python object.- Returns:
- the memoryview
- See Also:
-
compile
-
globals
org.jpy.PyObject globals() -
locals
org.jpy.PyObject locals() -
close
void close()- Specified by:
close
in interfaceAutoCloseable
-