Interface BuiltinsModule

All Superinterfaces:
AutoCloseable

public interface BuiltinsModule extends AutoCloseable
Java proxy module for builtins.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.jpy.PyObject
    compile(String expression, String filename, String mode)
     
     
    org.jpy.PyObject
    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
     
    int
    len(org.jpy.PyObject pyObject)
    Get the length (the number of items) of an object.
    org.jpy.PyObject
     
    org.jpy.PyObject
    memoryview(org.jpy.PyObject pyObject)
    Create a memoryview that references obj.
  • Method Details

    • create

      static BuiltinsModule 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

      org.jpy.PyObject compile(String expression, String filename, String mode)
    • globals

      org.jpy.PyObject globals()
    • locals

      org.jpy.PyObject locals()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable