newbie question: retrieving values of variables through C API

joshusdog at gmail.com joshusdog at gmail.com
Thu May 17 15:37:53 EDT 2007


I've got an application that embeds the Python interpreter. I have the
following command in my code:

   PyRun_SimpleString("a = \"hello\"");

My question is, what is the C API function call for retrieving the
value of the variable "a"?




More information about the Python-list mailing list