[Sameer Deshmukh] @stefan.krah question about NDT object deallocation:
You said that reducing the refcount of a NDT object 0 via
ndt_decref is supposed to be the only way of deallocating an NDT struct.
However in the python code I can see that you simply point to the default
PyObject_del for the deletion (without decreasing refcount). Can you please explain why this is so?
.tp_free = PyObject_Del is just the counterpart to
self = (NdtObject *)type->tp_alloc(type, 0)
It allocates and frees the *Python object structure*.
.tp_dealloc = (destructor) ndtype_dealloc is the part that deallocates the
ndt struct by calling
xnd-rubyand has future plans for XND in the Ruby community.