Update of /cvsroot/jython/jython/org/python/util
In directory slayer.i.sourceforge.net:/tmp/cvs-serv32492
Modified Files:
PythonInterpreter.java
Log Message:
PythonInterpreter(): Moved the PySystemState.initialize() call to the
start. This will later become a requirement that initialize() is
called before any jython object are created. This change will cover
the most common case.
Index: PythonInterpreter.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/util/PythonInterpreter.java,v
retrieving revision 2.4
retrieving revision 2.5
diff -C2 -r2.4 -r2.5
*** PythonInterpreter.java 2000/09/29 09:02:35 2.4
--- PythonInterpreter.java 2000/12/11 18:56:34 2.5
***************
*** 38,41 ****
--- 38,42 ----
public PythonInterpreter(PyObject dict, PySystemState systemState) {
+ PySystemState.initialize();
if (dict == null)
dict = new PyStringMap();
***************
*** 45,49 ****
systemState = new PySystemState();
}
- PySystemState.initialize();
module = new PyModule("main", dict);
this.systemState = systemState;
--- 46,49 ----
|