Class _py_compile

java.lang.Object
org.python.modules._py_compile

public class _py_compile extends Object
  • Field Details

    • __all__

      public static PyList __all__
  • Constructor Details

    • _py_compile

      public _py_compile()
  • Method Details

    • compile

      public static boolean compile(PyString fileName, PyString compiledName, PyString displayName)
      Java wrapper on the module compiler in support of of py_compile.compile. Filenames here will be interpreted as Unicode if they are PyUnicode, and as byte-encoded names if they only PyString.
      Parameters:
      fileName - actual source file name
      compiledName - compiled filename
      displayName - displayed source filename, only used for error messages (and not resolved)
      Returns:
      true if successful
    • getModuleName

      public static final String getModuleName(File f)