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

Pickle in C does not work

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

> 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.