| java.lang.Object org.python.core.Options
Options | public class Options (Code) | | A class with static fields for each of the settable options. The options from
registry and command line is copied into the fields here and the rest of
Jyhton checks these fields.
|
Field Summary | |
public static boolean | Qnew If true, enable truedivision for the '/' operator. | public static boolean | caseok If true, Jython will use the first module found on sys.path where java
File.isFile() returns true. | public static boolean | deprecatedKeywordMangling Setting this to true will support old 1.0 style keyword+"_" names. | public static int | divisionWarning Enable division warning. | public static boolean | importSite When false the site.py will not be imported. | public static boolean | pollStandardIn Setting this to true will cause the console to poll standard in. | public static String | proxyDebugDirectory A directory where the dynamicly generated classes are written. | public static boolean | respectJavaAccessibility If true, JPython respects Java the accessibility flag for fields,
methods, and constructors. | public static boolean | showJavaExceptions | public static boolean | showPythonProxyExceptions When true, python exception raised in overriden methods will be shown on
stderr. | public static boolean | skipCompile | public static int | verbose Set verbosity to Py.ERROR, Py.WARNING, Py.MESSAGE, Py.COMMENT, or
Py.DEBUG for varying levels of informative messages from Jython. |
Method Summary | |
public static void | setFromRegistry() Initialize the static fields from the registry options. |
Qnew | public static boolean Qnew(Code) | | If true, enable truedivision for the '/' operator.
|
caseok | public static boolean caseok(Code) | | If true, Jython will use the first module found on sys.path where java
File.isFile() returns true. Setting this to true have no effect on
unix-type filesystems. On Windows/HFS+ systems setting it to true will
enable Jython-2.0 behaviour.
|
deprecatedKeywordMangling | public static boolean deprecatedKeywordMangling(Code) | | Setting this to true will support old 1.0 style keyword+"_" names. This
isn't needed any more due to improvements in the parser
|
divisionWarning | public static int divisionWarning(Code) | | Enable division warning. The value maps to the registry values of
- old: 0
- warn: 1
- warnall: 2
|
importSite | public static boolean importSite(Code) | | When false the site.py will not be imported. This is only
honored by the command line main class.
|
pollStandardIn | public static boolean pollStandardIn(Code) | | Setting this to true will cause the console to poll standard in. This
might be helpful on systems without system-level threads.
|
proxyDebugDirectory | public static String proxyDebugDirectory(Code) | | A directory where the dynamicly generated classes are written. Nothing is
ever read from here, it is only for debugging purposes.
|
respectJavaAccessibility | public static boolean respectJavaAccessibility(Code) | | If true, JPython respects Java the accessibility flag for fields,
methods, and constructors. This means you can only access public members.
Set this to false to access all members by toggling the accessible flag
on the member.
|
showJavaExceptions | public static boolean showJavaExceptions(Code) | | when an exception occurs in Java code, and it is not caught, should the
interpreter print out the Java exception in the traceback?
|
showPythonProxyExceptions | public static boolean showPythonProxyExceptions(Code) | | When true, python exception raised in overriden methods will be shown on
stderr. This option is remarkable usefull when python is used for
implementing CORBA server. Some CORBA servers will turn python exception
(say a NameError) into an anonymous user exception without any
stacktrace. Setting this option will show the stacktrace.
|
skipCompile | public static boolean skipCompile(Code) | | To force JIT compilation of Jython code -- should be unnecessary Setting
this to true will cause jdk1.2rc1 to core dump on Windows
|
verbose | public static int verbose(Code) | | Set verbosity to Py.ERROR, Py.WARNING, Py.MESSAGE, Py.COMMENT, or
Py.DEBUG for varying levels of informative messages from Jython. Normally
this option is set from the command line.
|
setFromRegistry | public static void setFromRegistry()(Code) | | Initialize the static fields from the registry options.
|
|
|