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

Method instantiate

crates/vm/src/exceptions.rs:440–445  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

438
439impl ExceptionCtor {
440 pub fn instantiate(self, vm: &VirtualMachine) -> PyResult<PyBaseExceptionRef> {
441 match self {
442 Self::Class(cls) => vm.invoke_exception(cls, vec![]),
443 Self::Instance(exc) => Ok(exc),
444 }
445 }
446
447 pub fn instantiate_value(
448 self,

Callers 1

execute_raiseMethod · 0.45

Calls 1

invoke_exceptionMethod · 0.80

Tested by

no test coverage detected