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

Martoon mrabens at gmail.com
Mon Sep 10 17:19:25 EDT 2007


Thank you!  Just what I needed.

I came across the PyObject_*AttrString() functions earlier when
searching through the docs, and I thought I was in the right area, but
I didn't know what object I was supposed to set the attribute for.
Now I see that it's a module object.  It all makes sense now.  Thanks!




More information about the Python-list mailing list