STINNER Victor added the comment: > Now that there is a safe finalizer, I wonder if it should release the GIL, as > in sock_close().
Ah yes, good idea. I updated my patch. I also changed the change to begin by setting the sock_fd attribute to -1, before closing the socket (since the GIL is now released, the order matters). ---------- Added file: http://bugs.python.org/file42230/sock_finalize-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26590> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com