creating object from C

Ignacio Vazquez-Abrams ignacio at
Thu Sep 27 18:28:12 CEST 2001

On Thu, 27 Sep 2001, Olivier Deme wrote:

> Could someone give me a simple example code showing how to instanciate an  object of a
> given class in C?
> Also, how do I access a method from that object?

Use PyInstance_New() and PyObject_GetAttr()/PyObject_GetAttrString().

Ignacio Vazquez-Abrams  <ignacio at>

More information about the Python-list mailing list