P
py
I want to serialize an object in jython and then be able to read it in
using python, and vice versa.
Any suggestions on how to do this? pickle doesnt work, nor does using
ObjectOutputStream (from jython).
I prefer to do it file based ...something like
pickle.dump(someObj, open("output.txt", "w"))
as opposed to shelve
f = shelve.open("output.txt")
f['somedata'] = someObj
Thanks for the help in advance.
using python, and vice versa.
Any suggestions on how to do this? pickle doesnt work, nor does using
ObjectOutputStream (from jython).
I prefer to do it file based ...something like
pickle.dump(someObj, open("output.txt", "w"))
as opposed to shelve
f = shelve.open("output.txt")
f['somedata'] = someObj
Thanks for the help in advance.