Hi, note that this is a question for the cython-users mailing list.
Jonas H., 03.04.2010 01:26: > I need to acquire the GIL for a `__dealloc__` method, but the Cython > grammar does not allow this: > > cdef __dealloc__ with gil:: "special methods must be `def`" > def __dealloc__ with gil:: Python syntax error (of course) > cpdef __dealloc__ with gil:: see `cdef` > > What is the right way to do this? No need to do that. The __dealloc__ method is only called when the GIL is held. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
