(obj: PyObjectRef)
| 41 | |
| 42 | #[pyfunction] |
| 43 | fn getweakrefs(obj: PyObjectRef) -> Vec<PyObjectRef> { |
| 44 | match obj.get_weak_references() { |
| 45 | Some(v) => v.into_iter().map(Into::into).collect(), |
| 46 | None => vec![], |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | #[pyfunction] |
| 51 | fn _remove_dead_weakref( |
nothing calls this directly
no test coverage detected