From: <bc...@wo...> - 2001-06-07 16:26:48
|
[Craig Turner] >Can I serialise data-structures in python/jython using cPickle? And if so, >would I be able to pass an object serialised python server to a jython >applet provided it inherited from an object available at both ends? (call >me crazy :) ) That should work for most common cases. There are situation where the cPickle output isn't compatible: - the Jython-CPython versions have to match. Eg. both must be 2.0. - Beware of >8bit strings. Jython strings with character values > 0xFF will be pickled as a unicode string. That may come as a surprise to the python server. - Java objects and subclasses of java classes isn't supported at all. regards, finn |