On 15/04/10 15:34, Lisandro Dalcin wrote: > Now that you say it... The name "__dealloc__" always hurts my > eyes...The method does not do any "deallocation", so the name is IMHO > very misleading...
It's called that for three reasons: * It corresponds to the tp_dealloc type slot. * It gets called when the object is in the process of being deallocated. * It's the place for *you* to deallocate any resources that you have allocated for the object. The symmetry wouldn't be perfect, because you can also give an extension type a Python-style __init__ method, but a Python __del__ doesn't work. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
