◐ Shell
clean mode source ↗

Message 84883 - Python tracker

Daniel,

_closedsocket is a global, so it isn't safe to be used within __del__
during shutdown.

In the py3k branch, socket.__del__ calls socket._real_close which
references the global _socket.  So it's not safe their, either.