marshal module in jython does not marshal code!

Andre Michel Descombes amdescombes at
Wed Aug 28 17:41:17 CEST 2002


I am trying to marshal some python code using the marshal module in Jyhon. I
used the following code:

import marshal

c = compile("print 1 + 3", "", "exec")
f = open("test.dat", "wb")
marshal.dump(c, f)

and I got the following exception after the dump instruction:

 Traceback (innermost last):
   File "<console>", line 1, in ?
   File "e:\jython-2.1\Lib\", line 303, in dump
   File "e:\jython-2.1\Lib\", line 40, in dump
 KeyError: <jclass org.python.core.PyTableCode at 7017771>

doesn't the marshal module in jython support marshalling code?


Andre M. Descombes

More information about the Python-list mailing list