Re: [cython-users] Calling cdef class member function from C++

27 views
Skip to first unread message

Robert Bradshaw

unread,
Oct 1, 2012, 1:17:09 PM10/1/12
to cython...@googlegroups.com
Not without messing with the vtable directly. It's probably easiest to
write a C function wrapper in Cython taking an instance as the first
argument and call that.

- Robert

On Mon, Oct 1, 2012 at 5:18 AM, Thorsten Claff <tcl...@gmail.com> wrote:
> Dear all,
>
> is there a way to call a member function of a cython cdef class e.g.
>
> cdef class test():
>
> cdef print(self):
>
> print "test"
>
>
> from C++ code?
>
> Best regards,
> Thorsten
Reply all
Reply to author
Forward
0 new messages