From: Alex Grönholm <report@bu...> - 2010-07-12 11:52:34
New submission from Alex Grönholm <alex.gronholm+jython@...>:
According to Python documentation (http://docs.python.org/release/2.5.4/lib/pickle-sub.html), Unpickler objects from cPickle can use the find_global attribute (a callable) to decide what gets unpickled and what doesn't. Currently, however, this is incorrectly implemented in Jython so that Unpickler looks for the find_global attribute in the module, instead of the Unpickler instance.
Attached are the patch to correct this behavior, and a test script to verify the correct operation.
nosy: AlexGrönholm, otmarhumbel
title: cPickle.Unpickler does not allow assignment of find_global
Added file: http://bugs.jython.org/file858/cPickle.diff
Jython tracker <report@...>