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

Function open

crates/vm/src/stdlib/os.rs:240–242  ·  view source on GitHub ↗
(args: OpenArgs<'_>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

238
239 #[pyfunction]
240 fn open(args: OpenArgs<'_>, vm: &VirtualMachine) -> PyResult<crt_fd::Owned> {
241 os_open(args.path, args.flags, args.mode, args.dir_fd, vm)
242 }
243
244 #[cfg(any(unix, windows, target_os = "wasi"))]
245 pub(crate) fn os_open(

Callers 6

get_number_of_os_threadsFunction · 0.70
os_openFunction · 0.70
print_source_lineFunction · 0.50
new_with_modeMethod · 0.50
initializeMethod · 0.50

Calls 1

os_openFunction · 0.85

Tested by

no test coverage detected