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

Pickle in C does not work

On Tue, 20 Oct 2020 at 16:07, Serhiy Storchaka <storchaka at> wrote:

> You can use PyDict_New() + PyDict_Merge() to create a dict from your
> mapping.

Well, yes, I know. I just wrote it for simplicity now. Do you think this is
the problem?
I forgot to say that copy and deepcopy works. For what I know, they use
__reduce__ if it's present.

> tp_name of your class should include the module name.

It will be done :-)