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

Function gaierror

crates/stdlib/src/socket.rs:857–863  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

855 }
856 #[pyattr(once)]
857 fn gaierror(vm: &VirtualMachine) -> PyTypeRef {
858 vm.ctx.new_exception_type(
859 "socket",
860 "gaierror",
861 Some(vec![vm.ctx.exceptions.os_error.to_owned()]),
862 )
863 }
864
865 #[pyfunction]
866 const fn htonl(x: u32) -> u32 {

Callers 1

convert_socket_errorFunction · 0.85

Calls 2

new_exception_typeMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected