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

Method set_args

crates/vm/src/exceptions.rs:600–604  ·  view source on GitHub ↗
(&self, args: ArgIterable, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

598
599 #[pygetset(setter)]
600 fn set_args(&self, args: ArgIterable, vm: &VirtualMachine) -> PyResult<()> {
601 let args = args.iter(vm)?.collect::<PyResult<Vec<_>>>()?;
602 *self.args.write() = PyTuple::new_ref(args, &vm.ctx);
603 Ok(())
604 }
605
606 #[pygetset]
607 pub fn __traceback__(&self) -> Option<PyTracebackRef> {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected