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

Function error

crates/stdlib/src/locale.rs:143–149  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

141
142 #[pyattr(name = "Error", once)]
143 fn error(vm: &VirtualMachine) -> PyTypeRef {
144 vm.ctx.new_exception_type(
145 "locale",
146 "Error",
147 Some(vec![vm.ctx.exceptions.exception_type.to_owned()]),
148 )
149 }
150
151 #[pyfunction]
152 fn strcoll(string1: PyUtf8StrRef, string2: PyUtf8StrRef, vm: &VirtualMachine) -> PyResult {

Callers 1

setlocaleFunction · 0.70

Calls 2

new_exception_typeMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected