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. -- https://mail.python.org/mailman/listinfo/python-list