Re: serialize object in jython, read into python

2005-12-22 Thread Kent Johnson
py wrote: > 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(som

Re: serialize object in jython, read into python

2005-12-22 Thread Erik Max Francis
Noah wrote: > You can give up on pickle, because pickle is only > guaranteed to work with the exact same version of the Python > interpreter. Not true. You're thinking of marshal. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && A

Re: serialize object in jython, read into python

2005-12-22 Thread Fredrik Lundh
"Noah" <[EMAIL PROTECTED]> wrote: > > Thanks for the help in advance. > > You can give up on pickle, because pickle is only guaranteed > to work with the exact same version of the Python interpreter. nope. maybe you're thinking of marshalled bytecode, but I don't think that's what the OP was tal

Re: serialize object in jython, read into python

2005-12-22 Thread Paul Rubin
"py" <[EMAIL PROTECTED]> writes: > Noah wrote: > > You can give up on pickle, because pickle is only > > guaranteed to work with the exact same version of the Python > > interpreter. > > :( No that's confusing pickle with marshal. Pickle is supposed to work across versions, though it has recentl

Re: serialize object in jython, read into python

2005-12-22 Thread py
Noah wrote: > You can give up on pickle, because pickle is only > guaranteed to work with the exact same version of the Python > interpreter. :( > How complex of a serialization do you need? simple I just wrote the info out to a file. then i have a thread which reads in the files and parses t

Re: serialize object in jython, read into python

2005-12-22 Thread Noah
py wrote: > 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(someOb

serialize object in jython, read into python

2005-12-22 Thread 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"