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

Function close

crates/stdlib/src/socket.rs:3433–3435  ·  view source on GitHub ↗
(x: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3431
3432 #[pyfunction]
3433 fn close(x: PyObjectRef, vm: &VirtualMachine) -> Result<(), IoOrPyException> {
3434 Ok(close_inner(get_raw_sock(x, vm)?)?)
3435 }
3436
3437 fn close_inner(x: RawSocket) -> io::Result<()> {
3438 #[cfg(unix)]

Callers 7

close_innerFunction · 0.70
closeMethod · 0.70
close_handleMethod · 0.70
exec_innerFunction · 0.70
close_dir_fdsFunction · 0.70
close_filetable_fdsFunction · 0.70
close_fds_brute_forceFunction · 0.70

Calls 2

close_innerFunction · 0.85
get_raw_sockFunction · 0.85

Tested by

no test coverage detected