From: Perez C. D. <DPe...@fc...> - 2004-08-17 11:53:46
|
Hi all, In order to speed the Jython initialization time, I've thougth of= precompiling all the *.py from the Jython runtime lib, and placing inside= the same zip file where *.py are placed. =0D In this way they would be already compiled, and Jython wouldn't try to= compile them again. I've tried to compile Lib/zlib.py for trying this idea, by issuing this= command: jythonc Lib/zlib.py. The problem is that I get this error message: Traceback (innermost last): File "E:\DAVID\webIma6.1-E3\Jython/Tools/jythonc/jythonc.py", line 5, in ? File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\main.py", line 300, in= main File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\main.py", line 219, in= doCompile File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\compile.py", line 195, in= compilefile File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\compile.py", line 209, in= compile File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\BaseEvaluator.py", line= 318, in execstring File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\SimpleCompiler.py", line= 286, in parse File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\BaseEvaluator.py", line= 24, in parse File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\BaseEvaluator.py", line= 33, in visit File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\PythonVisitor.py", line= 71, in suite File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\BaseEvaluator.py", line= 54, in suite File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\BaseEvaluator.py", line= 33, in visit File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\PythonVisitor.py", line= 141, in ImportFrom File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\BaseEvaluator.py", line= 306, in importfrom_stmt File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\Object.py", line 34, in= __call__ File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\ObjectFactory.py", line= 290, in getattr File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\Object.py", line 205, in= getattr File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\Object.py", line 159, in= domethod File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\JavaCall.py", line 11, in= call File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\JavaCall.py", line 81, in= __init__ File "E:\DAVID\webIma6.1-E3\Jython\Tools\jythonc\JavaCall.py", line 87, in= makeSignature AttributeError: instance of 'org.python.core.ReflectedArgs' has no= attribute 'args' when calling: def makeSignature(self, rargs): inTypes =3D list(rargs.args) isPyArgs =3D rargs.flags =3D=3D rargs.PyArgsCall <------Error= happens here!!!!!!!!!!! isStatic =3D rargs.isStatic name =3D rargs.data.name if self.isConstructor: outType =3D rargs.data.declaringClass =0D else: outType =3D rargs.data.returnType if isStatic: self.callee =3D rargs.data.declaringClass.__name__ return Signature(name, inTypes, outType, isStatic, isPyArgs, self.isConstructor)=0D The problem is that ReflectedArgs is not public and its methods/attributes= aren't collected. Any idea? Am I going in the right direction? Thanks for any advice. David ************************************************************* Este correo ha sido procesado por el antivirus del Grupo FCC. ************************************************************* |