How to print a dictionary in python c api function
- by dizgam
PyObject* dict = PyDict_New();
PyDict_SetItem(dict, key, value);
PyDict_GetItem(dict, key);
Bus error if i use getitem function otherwise not.
So Want to confirm that the dictionary has the same values which i have set.
Other than using PyDict_GetItem function, Is there any other method to print the values of the dictionary?