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

Method repr_str

crates/vm/src/exceptions.rs:765–769  ·  view source on GitHub ↗
(zelf: &Py<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

763impl Representable for PyBaseException {
764 #[inline]
765 fn repr_str(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<String> {
766 let repr_args = vm.exception_args_as_string(zelf.args(), false);
767 let cls = zelf.class();
768 Ok(format!("{}({})", cls.name(), repr_args.iter().format(", ")))
769 }
770}
771
772impl ExceptionZoo {

Callers

nothing calls this directly

Calls 3

argsMethod · 0.45
classMethod · 0.45

Tested by

no test coverage detected