[Pyrex] Best practice for wrapping struct

Edward C. Jones edcjones at erols.com
Tue Oct 26 04:03:33 CEST 2004


Here is the file "example.h":

typedef struct {
    int iVal;
} Example;

Example* create(int i);
void destroy(Example* t);
int mult(Example* t, int scalar, int shift);

What is currently the best way to wrap this as a Python class "Example"?




More information about the Pyrex mailing list