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

Method name_error

crates/vm/src/frame.rs:2035–2037  ·  view source on GitHub ↗
(name: &'static PyStrInterned, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2033
2034 #[cold]
2035 fn name_error(name: &'static PyStrInterned, vm: &VirtualMachine) -> PyBaseExceptionRef {
2036 vm.new_name_error(format!("name '{name}' is not defined"), name.to_owned())
2037 }
2038
2039 match instruction {
2040 Instruction::BinaryOp { op } => {

Callers

nothing calls this directly

Calls 2

new_name_errorMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected