tp_getattrfunc, access members that are a list

Torsten Mohr tmohr at
Mon Jun 7 22:28:06 CEST 2004


in the documentation and the examples that describe how to
make the members of a new type accessible it says that
i need to use the getattrfunc and setattrfunc if i want
to access members that are an array.

typedef struct {
  unsigned char d[8];
} pmod_obj;

Sadly i did not find any example on how to do this.

Can anybody describe me how i can access the array d[8]
as a list?  I'd like to get AND set values in there.

Thanks for any hints,

More information about the Python-list mailing list