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

Method init

crates/vm/src/stdlib/_io.rs:2216–2224  ·  view source on GitHub ↗
(
            zelf: PyRef<Self>,
            (reader, writer, buffer_size): Self::Args,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

2214 type Args = (PyObjectRef, PyObjectRef, BufferSize);
2215
2216 fn init(
2217 zelf: PyRef<Self>,
2218 (reader, writer, buffer_size): Self::Args,
2219 vm: &VirtualMachine,
2220 ) -> PyResult<()> {
2221 zelf.read.init(reader, buffer_size.clone(), vm)?;
2222 zelf.write.init(writer, buffer_size, vm)?;
2223 Ok(())
2224 }
2225 }
2226
2227 #[pyclass(

Callers 1

slot_initMethod · 0.45

Calls 15

newFunction · 0.85
compute_modeFunction · 0.85
wopenFunction · 0.85
FdClass · 0.85
fstatFunction · 0.85
setmode_binaryFunction · 0.85
lseekFunction · 0.85
internal_closeFunction · 0.85
pyio_get_console_typeFunction · 0.85
onceFunction · 0.85
is_invalid_handleFunction · 0.85
open_osfhandleFunction · 0.85

Tested by

no test coverage detected