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

Function close

crates/vm/src/stdlib/os.rs:215–217  ·  view source on GitHub ↗
(fileno: crt_fd::Owned)

Source from the content-addressed store, hash-verified

213
214 #[pyfunction]
215 fn close(fileno: crt_fd::Owned) -> io::Result<()> {
216 crt_fd::close(fileno)
217 }
218
219 #[pyfunction]
220 fn closerange(fd_low: i32, fd_high: i32) {

Callers 5

spawnFunction · 0.90
closeMethod · 0.70
internal_closeFunction · 0.70
listdirFunction · 0.70
scandirFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected