Top Fields Constructors Methods
org.python.modules

public Class _py_compile

extends Object
Class Inheritance
Imports
java.io.File, jnr.constants.platform.Errno, org.python.core.Py, .PyList, .PyString, .PySystemState

Field Summary

Modifier and TypeField and Description
public static PyList

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if successful
compile
(PyString
actual source file name
fileName
,
PyString
compiled filename
compiledName
,
PyString
displayed source filename, only used for error messages (and not resolved)
displayName
)

Java wrapper on the module compiler in support of of py_compile.compile.

public static final String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__all__back to summary
public static PyList __all__

Constructor Detail

_py_compileback to summary
public _py_compile()

Method Detail

compileback to summary
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:PyString

actual source file name

compiledName:PyString

compiled filename

displayName:PyString

displayed source filename, only used for error messages (and not resolved)

Returns:boolean

true if successful

getModuleNameback to summary
public static final String getModuleName(File f)