ctypes question about call by reference

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Sep 25 21:50:20 EDT 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! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list