From: Finn B. <bc...@us...> - 2000-11-17 21:18:27
|
Update of /cvsroot/jython/jython/Tools/jythonc In directory slayer.i.sourceforge.net:/tmp/cvs-serv15595 Modified Files: PythonModule.py Log Message: Compiled modules will implement ModuleDictInit. This allow module initialization when the module is imported. And it avoid a second module initialization when the proxyclass is initialized. Index: PythonModule.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/PythonModule.py,v retrieving revision 2.10 retrieving revision 2.11 diff -C2 -r2.10 -r2.11 *** PythonModule.py 2000/10/28 19:17:36 2.10 --- PythonModule.py 2000/11/17 21:18:22 2.11 *************** *** 344,348 **** [jast.Invoke(dict, "__setitem__", sargs), jast.InvokeStatic("Py", "runCode", rargs)]) ! meths.append(jast.Method("classDictInit", "public static", ["void", ("PyObject", "dict")], code)) return meths --- 344,348 ---- [jast.Invoke(dict, "__setitem__", sargs), jast.InvokeStatic("Py", "runCode", rargs)]) ! meths.append(jast.Method("moduleDictInit", "public static", ["void", ("PyObject", "dict")], code)) return meths *************** *** 404,408 **** supername = self.javaproxy.supername ! self.interfaces += [org.python.core.ClassDictInit] body = jast.Block(mycode) return jast.Class(self.name, self.modifier, supername, --- 404,408 ---- supername = self.javaproxy.supername ! self.interfaces += [org.python.core.ModuleDictInit] body = jast.Block(mycode) return jast.Class(self.name, self.modifier, supername, |