(self, vm: &VirtualMachine)
| 634 | #[pyclass] |
| 635 | impl PyRef<PyInt> { |
| 636 | pub(crate) fn __int__(self, vm: &VirtualMachine) -> PyRefExact<PyInt> { |
| 637 | self.into_exact_or(&vm.ctx, |zelf| unsafe { |
| 638 | // TODO: this is actually safe. we need better interface |
| 639 | PyRefExact::new_unchecked(vm.ctx.new_bigint(&zelf.value)) |
| 640 | }) |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | impl Comparable for PyInt { |