(obj: PyObjectRef)
| 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] |
nothing calls this directly
no test coverage detected