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

Method to_pyexception

crates/vm/src/format.rs:114–119  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

112
113impl ToPyException for FormatParseError {
114 fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef {
115 match self {
116 Self::UnmatchedBracket => vm.new_value_error("expected '}' before end of string"),
117 _ => vm.new_value_error("Unexpected error parsing format string"),
118 }
119 }
120}
121
122fn format_internal(

Callers 4

to_cstringMethod · 0.45
format_internalFunction · 0.45
into_cstringMethod · 0.45
to_wide_cstringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected