On Sep 16, 1:25 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > For Cython, you might want to use __cinit__ and __dealloc__ (which > are guaranteed to be called exactly once in pairs).
I thought that __cinit__ and __dealloc__ is mainly good if you have some C data structures that python doesn't know to allocate or deallocate. So, in all my cdef'd classes i use it. But does it make sense to use these methods in a class that only has attributes which python knows how to deal with? Why? Cheers Simon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---