[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Serializing complex objects

On 21/09/2018 20:44, Joseph L. Casale wrote:
> -----Original Message-----
> From: Python-list <python-list-
> bounces+jcasale=activenetwerx.com at python.org> On Behalf Of Rhodri
> James
> Sent: Friday, September 21, 2018 11:39 AM
> To: python-list at python.org
> Subject: Re: Serializing complex objects
>> Depending on what exactly your situation is, you may be able to use the
>> pickle module (in the standard library) to dump your graph and reload it
>> in a context you can get a debugger into.  Would that be sufficient?
> Pickle cant serialize it (ctype pointers) and dill serializes it, but re-animating
> it fails without much useful guidance as to why, "EOFError: Ran out of input".

So parts of your structure have custom serialization handlers, and other 
parts are not serializable at all? Interesting.

In any case you should be able to work around this with a custom Pickler.