[issue26590] socket destructor: implement finalizer

STINNER Victor report at bugs.python.org
Sat Mar 19 05:39:29 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26590>
_______________________________________


More information about the Python-bugs-list mailing list