MCPcopy Create free account
hub / github.com/RustPython/RustPython / set_filename

Method set_filename

crates/vm/src/exceptions.rs:2144–2146  ·  view source on GitHub ↗
(&self, value: Option<PyObjectRef>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2142
2143 #[pygetset(setter)]
2144 fn set_filename(&self, value: Option<PyObjectRef>, vm: &VirtualMachine) {
2145 self.filename.swap_to_temporary_refs(value, vm);
2146 }
2147
2148 #[pygetset]
2149 fn filename2(&self) -> Option<PyObjectRef> {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected