(&self)
| 951 | } |
| 952 | |
| 953 | pub(crate) fn get_bytes_mut(&self) -> PyMappedRwLockWriteGuard<'_, [u8]> { |
| 954 | PyRwLockWriteGuard::map(self.write(), |a| a.get_bytes_mut()) |
| 955 | } |
| 956 | |
| 957 | #[pymethod] |
| 958 | fn tolist(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> { |