(&self, vm: &VirtualMachine)
| 731 | |
| 732 | #[pymethod] |
| 733 | fn toreadonly(&self, vm: &VirtualMachine) -> PyResult<PyRef<Self>> { |
| 734 | self.try_not_released(vm)?; |
| 735 | let mut other = self.new_view(); |
| 736 | other.desc.readonly = true; |
| 737 | Ok(other.into_ref(&vm.ctx)) |
| 738 | } |
| 739 | |
| 740 | #[pymethod] |
| 741 | fn hex( |