I've just fixed a number of pickle bugs on jython-trunk: including a
particularly evil one that was causing test_xpickle to fail, due to
pickling of longs using the wrong endian order.
It's now fixed as of r4306.
Unfortunately this means anyone that's previously used cPickle
protocol 2 on jython-trunk to pickle longs has had them pickled
incorrectly. As of r4306, they will be unpickled assuming the correct
This means cPickle will unpickle the *WRONG* value for your pickled
longs: iPods suddenly on sale for -$256L instead of $255L!
Luckily this only affects cPickle protocol 2 (not normal pickle) on
trunk. The 2.2 releases do not include support for protocol 2 and do
not have this problem.