ctypes question about call by reference

Gabriel Genellina gagsl-py at yahoo.com.ar
Tue Sep 26 03:50:20 CEST 2006

At Sunday 24/9/2006 15:49, Lawrence Oluyede wrote:

> > Is it at all possbile to use a struct without defining it with ctypes?
>If you want to use it you have to define it somewhere...

If it's an "opaque" thing, totally managed by the external code, yes 
- treat it as a pointer.
That is, if you never have to access its fields, or create/destroy it 
in the "python" code (using an external function would be ok).

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 

More information about the Python-list mailing list