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

Function is_tracked

crates/vm/src/stdlib/gc.rs:235–238  ·  view source on GitHub ↗
(obj: PyObjectRef)

Source from the content-addressed store, hash-verified

233 /// Return True if the object is tracked by the garbage collector.
234 #[pyfunction]
235 fn is_tracked(obj: PyObjectRef) -> bool {
236 // An object is tracked if it has IS_TRACE = true (has a trace function)
237 obj.is_gc_tracked()
238 }
239
240 /// Return True if the object has been finalized by the garbage collector.
241 #[pyfunction]

Callers

nothing calls this directly

Calls 1

is_gc_trackedMethod · 0.80

Tested by

no test coverage detected