C API (embedded Python): How to get and set named variables

mrabens at gmail.com mrabens at gmail.com
Mon Sep 10 20:10:04 CEST 2007


>From the C API (I'm using Python embedded), how can I get and set the
value of named variables?  Right now, I'm using hacks like
PyRun_SimpleString("foobar = 12\n"), but I'd really like to access the
named objects directly.




More information about the Python-list mailing list