PyDocs

Nav

Python Runtime Services

is_tracked

gc

function · Added in 3.1
  • is_tracked(obj)
Returns true if the object is tracked by the garbage collector.

Simple atomic objects will return false.
1 Example
>>> gc.is_tracked(0)
False
>>> gc.is_tracked("a")
False
>>> gc.is_tracked([])
True
>>> gc.is_tracked({})
False
>>> gc.is_tracked({"a": 1})
True
from the Python docs
See Also
No see-alsos for gc/is_tracked
0 Notes
No notes for is_tracked