MCPcopy Index your code
hub / github.com/RustPython/RustPython / close

Method close

Lib/socket.py:788–796  ·  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

786 return self._mode
787
788 def close(self):
789 """Close the SocketIO object. This doesn't close the underlying
790 socket, except if all references to it have disappeared.
791 """
792 if self.closed:
793 return
794 io.RawIOBase.close(self)
795 self._sock._decref_socketios()
796 self._sock = None
797
798
799def getfqdn(name=''):

Callers

nothing calls this directly

Calls 2

_decref_socketiosMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected