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

Function open_code

crates/vm/src/stdlib/_io.rs:4962–4965  ·  view source on GitHub ↗
(file: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

4960
4961 #[pyfunction]
4962 fn open_code(file: PyObjectRef, vm: &VirtualMachine) -> PyResult {
4963 // TODO: lifecycle hooks or something?
4964 io_open(file, Some("rb"), OpenArgs::default(), vm)
4965 }
4966
4967 #[derive(FromArgs)]
4968 pub struct OpenArgs {

Callers

nothing calls this directly

Calls 2

io_openFunction · 0.85
SomeClass · 0.50

Tested by

no test coverage detected