[ python-Bugs-903483 ] cPickle/pickle incompatibility

SourceForge.net noreply at sourceforge.net
Tue Feb 24 10:01:52 EST 2004


Bugs item #903483, was opened at 2004-02-24 15:59
Message generated for change (Settings changed) made by tismer
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=903483&group_id=5470

>Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christian Tismer (tismer)
>Assigned to: Nobody/Anonymous (nobody)
Summary: cPickle/pickle incompatibility

Initial Comment:
Pickling of functions:
pickle.py first tries a save_global.
If that doesn't work, it tries a save_reduce.
This fallback allows to register pickling of local
functions
via copy_reg.

cPickle doesn't do that.
This bug/omission exists since Python 2.3. 

Solution:
A simple patch allows cPickle to fall back to reduce as
well.

Range:
I think this patch should be applied back to Python 2.3.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=903483&group_id=5470



More information about the Python-bugs-list mailing list