[Patches] [ python-Patches-452239 ] cPickle patch for bug 451547

noreply@sourceforge.net noreply@sourceforge.net
Thu, 11 Oct 2001 09:10:04 -0700


Patches item #452239, was opened at 2001-08-17 14:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=452239&group_id=5470

Category: Modules
Group: None
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Gordon B. McMillan (gmcm)
>Assigned to: Jeremy Hylton (jhylton)
Summary: cPickle patch for bug 451547

Initial Comment:
This patch attempts to do to cPickle what Guido did 
for pickle.py v 1.50. That is: save_global tries 
importing the module, and fetching the name from the 
module. If that fails, or the returned object is not 
the same one we started with, it raises a 
PicklingError. (All this so pickling a lambda will 
fail at save time, rather than load time).

Modules/cPickle.c is current CVS from view cvs.


----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-18 14:22

Message:
Logged In: YES 
user_id=6380

Thanks!   Works like a charm.  Checked in as cPickle.c 2.63.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=452239&group_id=5470