zeromq/pyzmq — pull request #212 by minrk (2012-06-03 23:05:56+00:00)
Title: adjust del/gc behavior

`__del__` appears to never be called from Cython, so put all close logic in `__dealloc__`.

Previously, this could segfault, but a check for whether the Context has been cleaned up seems to resolve that issue.

Also, the GIL is never released around zmq_close calls, which are non-blocking anyway.

closes #211