STINNER Victor added the comment: It's unclear to me if it's needed to call the following code in sock_dealloc():
+ if (PyObject_CallFinalizerFromDealloc((PyObject *)s) < 0) + return; It looks like this code is not needed, since sock_finalize() is called before sock_dealloc(). ---------- _______________________________________ 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