On 07/03/2019 00:18, Ethan Furman wrote:
> On 03/06/2019 10:30 AM, duncan smith wrote:
>
>> I've been trying to figure out why one of my classes can be
>> pickled but not unpickled. (I realise the problem is probably with the
>> pickling, but I get the error when I attempt to unpickle.)
>>
>> A r
On 06/03/2019 20:24, Peter Otten wrote:
> duncan smith wrote:
>
>> On 06/03/2019 16:14, duncan smith wrote:
>>> Hello,
>>> I've been trying to figure out why one of my classes can be
>>> pickled but not unpickled. (I realise the problem is probably with the
>>> pickling, but I get the error
On 03/06/2019 10:30 AM, duncan smith wrote:
I've been trying to figure out why one of my classes can be
pickled but not unpickled. (I realise the problem is probably with the
pickling, but I get the error when I attempt to unpickle.)
A relatively minimal example is pasted below.
--> import p
duncan smith wrote:
> On 06/03/2019 16:14, duncan smith wrote:
>> Hello,
>> I've been trying to figure out why one of my classes can be
>> pickled but not unpickled. (I realise the problem is probably with the
>> pickling, but I get the error when I attempt to unpickle.)
>>
>> A relatively
On 06/03/2019 16:14, duncan smith wrote:
> Hello,
> I've been trying to figure out why one of my classes can be
> pickled but not unpickled. (I realise the problem is probably with the
> pickling, but I get the error when I attempt to unpickle.)
>
> A relatively minimal example is pasted bel
has no attribute 'shape'
.loads() complete
{1: None, 2: None, 3: None} None
Alas, I can't offer any help with how to use __getnewargs__() or the other
dunders to properly handle it.
-Original Message-
From: Python-list
[mailto:python-list-bounces+david.raymond=tomtom@p
[snip]
Sorry, this is Python 3.6 on Linux.
Duncan
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I've been trying to figure out why one of my classes can be
pickled but not unpickled. (I realise the problem is probably with the
pickling, but I get the error when I attempt to unpickle.)
A relatively minimal example is pasted below.
>>> import pickle
>>> class test(dict):
On Tuesday, July 4, 2000 at 12:00:00 AM UTC-7, Larry Whitley wrote:
> I'd like to pickle an object in python and unpickle it in C++. The object
> in question is a python dictionary so it will have to go into a C++ map.
> Has someone done this and is willing to share? Or, is the cPickle source
> a