Dag Sverre Seljebotn wrote:
> I need to convert a Python object to void* and back again, and also from 
> object to PyObject*. Is there a way of doing this without getting 
> warnings? If not, how can I introduce one? (Warning compiler directives? 
> In that case we should start numbering the warnings...)

As usual, sending an email spawns a solution in my head...

cdef extern from *:
     cdef void* tovoid "(void*)"(object)

Anyone better/anything cleaner though? (If not I'll file a ticket to 
make such explicit conversions magic functions in the cython module.)

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to