Johannes Wienke wrote:

> cpdef class Foo:
>     def __del__(self):
>         print "Foo::__del__"

Not sure about Cython, but in Pyrex, extension types don't
have __del__ methods. On the other hand, they do have a
__dealloc__ method, which is better in some ways, since
in contrast to __del__ it's always called when the object
is deallocated.

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

Reply via email to