durusmail: durus-users: Pickling/exporting objects
Pickling/exporting objects
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-02
2005-03-03
2005-03-03
2005-03-03
2005-03-03
2005-03-03
2005-03-04
2005-03-04
2005-03-04
2005-03-04
2005-03-04
2005-03-04
2005-03-05
Pickling/exporting objects
David Binger
2005-03-04
I think the type name for PersistentBase in the C implementation
should be "durus.persistent.PersistentBase", not
"durus._persistent.PersistentBase" so that pickles make
when the C-implementation is installed can be unpickled
whether or not the c implementation is installed.

A.M. Kuchling wrote:

>On Fri, Mar 04, 2005 at 06:50:34AM -0500, David Binger wrote:
>
>
>>Okay, I really can pickle a Persistent instance now, even with
>>the C implementation of PersistentBase installed.  Note that
>>pickle protocol 2 is required.
>>
>>
>
>Thanks, David!  That works like a charm.
>
>(That's exactly the change I tried, but never with pickle protocol 2;
>hence I concluded the fix was wrong in some way.  $#%&*!)
>
>BTW, there's a minor word missing from a docstring in _persistent.c:
>"This the C implementation..."
>
>

got it.



reply