Message5886

Author alex.gronholm
Recipients alex.gronholm, otmarhumbel
Date 2010-07-12.11:52:23
SpamBayes Score 0.0006226866
Marked as misclassified No
Message-id <1278935546.01.0.668848644644.issue1632@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-12 11:52:26alex.gronholmsetrecipients: + alex.gronholm, otmarhumbel
2010-07-12 11:52:26alex.gronholmsetmessageid: <1278935546.01.0.668848644644.issue1632@psf.upfronthosting.co.za>
2010-07-12 11:52:25alex.gronholmlinkissue1632 messages
2010-07-12 11:52:24alex.gronholmcreate