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

Function disable

crates/vm/src/stdlib/gc.rs:32–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 /// Disable automatic garbage collection.
31 #[pyfunction]
32 fn disable() {
33 gc_state::gc_state().disable();
34 }
35
36 /// Return true if automatic gc is enabled.
37 #[pyfunction]

Callers

nothing calls this directly

Calls 2

gc_stateFunction · 0.85
disableMethod · 0.45

Tested by

no test coverage detected