Stefan Behnel wrote:

>>cdef class MyClass:
>>   cdef void myfunc(self, double *x):
>>       ... (function contents) ...
>>
>>   def execute():
>>       call_func( &(self.myfunc) )

Cython and Pyrex should probably disallow taking the
address of a C method of an instance, since it doesn't
do what it looks like it does.

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

Reply via email to