Pickle in C does not work

Serhiy Storchaka storchaka at gmail.com
Tue Oct 20 05:16:30 EDT 2020


20.10.20 01:28, Marco Sulla пише:
>     PyObject *d = PyObject_Call((PyObject *)&PyDict_Type, args, NULL);

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

> but I get:
> _pickle.PicklingError: Can't pickle <class 'frozendict'>: attribute lookup
> frozendict on builtins failed

tp_name of your class should include the module name.



More information about the Python-list mailing list