STINNER Victor <victor.stin...@gmail.com> added the comment: > Hmm... _decref_socketios() is not really a public API. I think it would be > nice to have an official way to deal with this, and a socket close callback > sounds reasonable to me.
I dislike the idea of an event when a socket is closed. It doesn't prevent a crash if you are using the socket with the GIL released. I prefer to "hold" the socket while using it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32038> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com