using c-methods for callbacks?

horace <[email protected]> Sat, 30 May 2009 04:33:51 +0200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
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

_______________________________________________
Pyrex mailing list
[email protected]
http://lists.copyleft.no/mailman/listinfo/pyrex