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

Function error

crates/stdlib/src/csv.rs:39–45  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

37
38 #[pyattr(name = "Error", once)]
39 fn error(vm: &VirtualMachine) -> PyTypeRef {
40 vm.ctx.new_exception_type(
41 "_csv",
42 "Error",
43 Some(vec![vm.ctx.exceptions.exception_type.to_owned()]),
44 )
45 }
46
47 static GLOBAL_HASHMAP: LazyLock<Mutex<HashMap<String, PyDialect>>> = LazyLock::new(|| {
48 let m = HashMap::new();

Callers 2

new_csv_errorFunction · 0.70
set_stdoutMethod · 0.50

Calls 2

new_exception_typeMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected