MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/socket.py:797–805  ·  view source on GitHub ↗

Close the SocketIO object. This doesn't close the underlying socket, except if all references to it have disappeared.

(self)

Source from the content-addressed store, hash-verified

795 return self._mode
796
797 def close(self):
798 """Close the SocketIO object. This doesn't close the underlying
799 socket, except if all references to it have disappeared.
800 """
801 if self.closed:
802 return
803 io.RawIOBase.close(self)
804 self._sock._decref_socketios()
805 self._sock = None
806
807
808def getfqdn(name=''):

Callers

nothing calls this directly

Calls 2

_decref_socketiosMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected