Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _clear
Function
_clear
crates/vm/src/stdlib/atexit.rs:19–21 ·
view source on GitHub ↗
(vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
17
18
#[pyfunction]
19
fn _clear(vm: &VirtualMachine) {
20
vm.state.atexit_funcs.lock().clear();
21
}
22
23
#[pyfunction]
24
fn unregister(func: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
Callers
nothing calls this directly
Calls
2
clear
Method · 0.45
lock
Method · 0.45
Tested by
no test coverage detected