(&self)
| 14 | #[pyproto] |
| 15 | impl PyMappingProtocol for PyMap { |
| 16 | fn __len__(&self) -> usize { |
| 17 | self.as_ref().len() |
| 18 | } |
| 19 | fn __setitem__(&mut self, attr: String, value: PyObject) -> PyResult<()> { |
| 20 | let gil = Python::acquire_gil(); |
| 21 | let py = gil.python(); |