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

Function new_unsupported_operation

crates/vm/src/stdlib/_io.rs:201–204  ·  view source on GitHub ↗
(vm: &VirtualMachine, msg: String)

Source from the content-addressed store, hash-verified

199 }
200
201 pub fn new_unsupported_operation(vm: &VirtualMachine, msg: String) -> PyBaseExceptionRef {
202 vm.new_os_subtype_error(unsupported_operation().to_owned(), None, msg)
203 .upcast()
204 }
205
206 fn _unsupported<T>(vm: &VirtualMachine, zelf: &PyObject, operation: &str) -> PyResult<T> {
207 Err(new_unsupported_operation(

Callers 13

_unsupportedFunction · 0.85
check_readableFunction · 0.85
check_writableFunction · 0.85
check_seekableFunction · 0.85
truncateMethod · 0.85
reconfigureMethod · 0.85
seekMethod · 0.85
tellMethod · 0.85
readMethod · 0.85
writeMethod · 0.85
read_chunkMethod · 0.85
io_openFunction · 0.85

Calls 4

unsupported_operationFunction · 0.85
upcastMethod · 0.80
new_os_subtype_errorMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected