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

Method close

Lib/socket.py:516–520  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

514 _ss.close(self)
515
516 def close(self):
517 # This function should not reference any globals. See issue #808164.
518 self._closed = True
519 if self._io_refs <= 0:
520 self._real_close()
521
522 def detach(self):
523 """detach() -> file descriptor

Callers 7

__exit__Method · 0.95
_decref_socketiosMethod · 0.95
_real_closeMethod · 0.45
_fallback_socketpairFunction · 0.45
closeMethod · 0.45
create_connectionFunction · 0.45
create_serverFunction · 0.45

Calls 1

_real_closeMethod · 0.95

Tested by

no test coverage detected