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!
-- http://mail.python.org/mailman/listinfo/python-list