[Pyrex] using c-methods for callbacks?

horace horace3d at gmail.com
Sat May 30 04:33:51 CEST 2009


hi,

it would be great if i could use c-methods for callbacks but i always get a
crash if i access self. am i doing something wrong or doesn't self get
assigned correctly if the method gets called from a c-library?

cdef class Engine:
  ...
  cdef void on_space(self): # i pass this to the c-library to be used as the
callback
    print "test!" # this works
    print self # this crashes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20090530/4fa33e43/attachment.html 


More information about the Pyrex mailing list