(zelf: PyRef<Self>, vm: &VirtualMachine)
| 230 | // TODO: wrong return type |
| 231 | #[pymethod] |
| 232 | fn items(zelf: PyRef<Self>, vm: &VirtualMachine) -> Vec<PyObjectRef> { |
| 233 | let vars = zelf.borrow_vars(); |
| 234 | vars.iter() |
| 235 | .map(|(k, v)| vm.ctx.new_tuple(vec![k.clone().into(), v.clone()]).into()) |
| 236 | .collect() |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | impl Constructor for PyContext { |
no test coverage detected