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

Method init

crates/vm/src/exceptions.rs:757–760  ·  view source on GitHub ↗
(zelf: PyRef<Self>, args: Self::Args, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

755 type Args = FuncArgs;
756
757 fn init(zelf: PyRef<Self>, args: Self::Args, vm: &VirtualMachine) -> PyResult<()> {
758 *zelf.args.write() = PyTuple::new_ref(args.args, &vm.ctx);
759 Ok(())
760 }
761}
762
763impl Representable for PyBaseException {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected