tp_getattrfunc, access members that are a list
From: Torsten Mohr (tmohr_at_s.netic.de)
Date: 06/07/04
- Next message: ChrisH: "win32all - determine wrkstn vs. server"
- Previous message: Torsten Mohr: "PyArg_ParseTuple, test for SEVERAL possibilities"
- Next in thread: Thomas Heller: "Re: tp_getattrfunc, access members that are a list"
- Reply: Thomas Heller: "Re: tp_getattrfunc, access members that are a list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 07 Jun 2004 22:28:06 +0200
Hi,
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 {
PyObject_HEAD
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,
Torsten.
- Next message: ChrisH: "win32all - determine wrkstn vs. server"
- Previous message: Torsten Mohr: "PyArg_ParseTuple, test for SEVERAL possibilities"
- Next in thread: Thomas Heller: "Re: tp_getattrfunc, access members that are a list"
- Reply: Thomas Heller: "Re: tp_getattrfunc, access members that are a list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|