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

Method set

crates/vm/src/builtins/function.rs:1366–1368  ·  view source on GitHub ↗
(&self, x: Option<PyObjectRef>)

Source from the content-addressed store, hash-verified

1364 self.contents.lock().clone()
1365 }
1366 pub fn set(&self, x: Option<PyObjectRef>) {
1367 *self.contents.lock() = x;
1368 }
1369
1370 #[pygetset]
1371 fn cell_contents(&self, vm: &VirtualMachine) -> PyResult {

Callers 15

freelist_pushMethod · 0.45
freelist_popMethod · 0.45
freelist_pushMethod · 0.45
freelist_popMethod · 0.45
freelist_pushMethod · 0.45
freelist_popMethod · 0.45
freelist_pushMethod · 0.45
freelist_popMethod · 0.45
hashMethod · 0.45
freelist_pushMethod · 0.45
freelist_popMethod · 0.45
freelist_pushMethod · 0.45

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected