[Cython] fundamentals question

Stefan Behnel stefan_ml at behnel.de
Tue May 19 19:23:12 CEST 2009


Chris Colbert wrote:
> I guess what i'm asking, if I have a single python object reference the
> IplImage* handle, and I delete the python object, the IplImage still exists,
> so I would need to explicitly deallocate the image in the __dealloc__
> special method, correct?

Exactly. As long as you can make sure you have a 1:1 mapping between Python
objects and C structs, that's all you need to care about.

Stefan



More information about the Cython-dev mailing list