How do I create a vanilla object in C?

Daniel Fetchinson fetchinson at googlemail.com
Sat Nov 21 19:21:47 EST 2009


> I need to create a vanilla object in C, something I can do
> PyObject_SetAttr on.  Obviously, I do something somewhat like this every
> time I create a minimal python class.  I need to know how to do this in C
> though.

Please see

http://docs.python.org/extending/index.html
http://docs.python.org/c-api/index.html
http://docs.python.org/c-api/object.html

HTH,
Daniel

-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown



More information about the Python-list mailing list