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

Method into_pyexception

crates/stdlib/src/socket.rs:2749–2755  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2747 impl IntoPyException for IoOrPyException {
2748 #[inline]
2749 fn into_pyexception(self, vm: &VirtualMachine) -> PyBaseExceptionRef {
2750 match self {
2751 Self::Timeout => timeout_error(vm).upcast(),
2752 Self::Py(exc) => exc,
2753 Self::Io(err) => err.into_pyexception(vm),
2754 }
2755 }
2756 }
2757
2758 #[derive(Copy, Clone)]

Callers 15

initMethod · 0.45
_initMethod · 0.45
sendmsgMethod · 0.45
sendmsg_afalgMethod · 0.45
recvmsgMethod · 0.45
settimeoutMethod · 0.45
if_nameindexFunction · 0.45
pollMethod · 0.45
py_newMethod · 0.45
registerMethod · 0.45
modifyMethod · 0.45
unregisterMethod · 0.45

Calls 2

timeout_errorFunction · 0.85
upcastMethod · 0.80

Tested by 1

write_inputFunction · 0.36