(args: FuncArgs, vm: &VirtualMachine)
| 172 | /// Return the list of objects directly referred to by any of the arguments. |
| 173 | #[pyfunction] |
| 174 | fn get_referents(args: FuncArgs, vm: &VirtualMachine) -> PyListRef { |
| 175 | let mut result = Vec::new(); |
| 176 | |
| 177 | for obj in args.args { |
| 178 | // Use the gc_get_referents method to get references |
| 179 | result.extend(obj.gc_get_referents()); |
| 180 | } |
| 181 | |
| 182 | vm.ctx.new_list(result) |
| 183 | } |
| 184 | |
| 185 | /// Return the list of objects that directly refer to any of the arguments. |
| 186 | #[pyfunction] |
nothing calls this directly
no test coverage detected