how to pass C++ object to another C++ function via Python function

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Apr 21 19:58:42 EDT 2008


En Mon, 21 Apr 2008 11:19:24 -0300, Diez B. Roggisch <deets at nospam.web.de>  
escribió:
> Gabriel Genellina wrote:
>> You can't pass any arbitrary C object to a Python function.
>> In this case you can use a PyCObject, a Python box around a void*  
>> pointer.
>> See http://docs.python.org/api/cObjects.html
>
> Neat! Didn't know about that one.

I found it just by chance. The title alone in the API reference isn't very  
descriptive...

-- 
Gabriel Genellina




More information about the Python-list mailing list