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

Method close

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

Source from the content-addressed store, hash-verified

505 _ss.close(self)
506
507 def close(self):
508 # This function should not reference any globals. See issue #808164.
509 self._closed = True
510 if self._io_refs <= 0:
511 self._real_close()
512
513 def detach(self):
514 """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