(vm: &VirtualMachine)
| 105 | /// Return the current collection counts as a tuple. |
| 106 | #[pyfunction] |
| 107 | fn get_count(vm: &VirtualMachine) -> PyObjectRef { |
| 108 | let (c0, c1, c2) = gc_state::gc_state().get_count(); |
| 109 | vm.ctx |
| 110 | .new_tuple(vec![ |
| 111 | vm.ctx.new_int(c0).into(), |
| 112 | vm.ctx.new_int(c1).into(), |
| 113 | vm.ctx.new_int(c2).into(), |
| 114 | ]) |
| 115 | .into() |
| 116 | } |
| 117 | |
| 118 | /// Return the current debugging flags. |
| 119 | #[pyfunction] |