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

Method new_os_error

crates/vm/src/vm/vm_new.rs:124–127  ·  view source on GitHub ↗
(&self, msg: impl ToPyObject)

Source from the content-addressed store, hash-verified

122 }
123
124 pub fn new_os_error(&self, msg: impl ToPyObject) -> PyRef<PyBaseException> {
125 self.new_os_subtype_error(self.ctx.exceptions.os_error.to_owned(), None, msg)
126 .upcast()
127 }
128
129 pub fn new_os_subtype_error(
130 &self,

Callers 15

run_fileFunction · 0.80
load_dh_paramsMethod · 0.80
load_client_ca_listFunction · 0.80
extract_addressMethod · 0.80
pack_cmsgs_to_sendMethod · 0.80
getsockoptMethod · 0.80
gethostnameFunction · 0.80
inet_atonFunction · 0.80
inet_ntoaFunction · 0.80
getservbynameFunction · 0.80
getservbyportFunction · 0.80
inet_ptonFunction · 0.80

Calls 3

upcastMethod · 0.80
new_os_subtype_errorMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected