(&self, vm: &VirtualMachine)
| 327 | |
| 328 | #[pymethod] |
| 329 | fn get_namespace(&self, vm: &VirtualMachine) -> PyResult { |
| 330 | if self.namespaces.len() != 1 { |
| 331 | return Err(vm.new_value_error("namespace is bound to multiple namespaces")); |
| 332 | } |
| 333 | Ok(to_py_symbol_table(self.namespaces.first().unwrap().clone()) |
| 334 | .into_ref(&vm.ctx) |
| 335 | .into()) |
| 336 | } |
| 337 | } |
| 338 | } |