4 Jun 2012 00:18
__del__ never called?
MinRK <benjaminrk <at> gmail.com>
2012-06-03 22:18:00 GMT
2012-06-03 22:18:00 GMT
Is the `__del__` method supposed to be totally ignored by Cython classes?
This case:
cdef class C(object):
def __del__(self):
print 'del'
def __dealloc__(self):
print 'dealloc'
When I do:
c = C()
del c
I just get 'dealloc'
The docs say that dealloc is the corollary for cinit, which I had interpreted as meaning that del still exists, just as init does.
Same behavior on 0.15.1 and 0.17pre
-MinRK
RSS Feed