PyDict_GetItemString converse

Randy Heiland heiland at ncsa.uiuc.edu
Wed Aug 23 13:37:04 EDT 2000


I know that, given a name of a variable, I can do:

PyObject *result = PyDict_GetItemString(globals, varname);

how do I do the converse -- given a PyObject, get its associated
variable name?

thanks,
--Randy




More information about the Python-list mailing list