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

Function io_closed_error

crates/vm/src/stdlib/_io.rs:246–248  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

244 }
245
246 pub(super) fn io_closed_error(vm: &VirtualMachine) -> PyBaseExceptionRef {
247 vm.new_value_error("I/O operation on closed file")
248 }
249
250 #[pyattr]
251 const DEFAULT_BUFFER_SIZE: usize = super::DEFAULT_BUFFER_SIZE;

Callers 11

check_closedFunction · 0.85
bufferMethod · 0.85
flushMethod · 0.85
truncateMethod · 0.85
isattyMethod · 0.85
filenoMethod · 0.85
readableMethod · 0.85
writableMethod · 0.85
readallMethod · 0.85
readMethod · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected