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

Function set_inheritable

crates/vm/src/stdlib/nt.rs:225–232  ·  view source on GitHub ↗
(
        fd: crt_fd::Borrowed<'_>,
        inheritable: bool,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

223
224 #[pyfunction]
225 fn set_inheritable(
226 fd: crt_fd::Borrowed<'_>,
227 inheritable: bool,
228 vm: &VirtualMachine,
229 ) -> PyResult<()> {
230 let handle = crt_fd::as_handle(fd).map_err(|e| e.to_pyexception(vm))?;
231 set_handle_inheritable(handle.as_raw_handle() as _, inheritable, vm)
232 }
233
234 #[pyattr]
235 fn environ(vm: &VirtualMachine) -> PyDictRef {

Callers

nothing calls this directly

Calls 3

as_handleFunction · 0.85
set_handle_inheritableFunction · 0.85
to_pyexceptionMethod · 0.45

Tested by

no test coverage detected