(a: PyObjectRef, vm: &VirtualMachine)
| 87 | // a.__index__ as raised in the issue. Currently, we accept int subclasses. |
| 88 | #[pyfunction] |
| 89 | fn index(a: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyIntRef> { |
| 90 | a.try_index(vm) |
| 91 | } |
| 92 | |
| 93 | #[pyfunction] |
| 94 | fn invert(pos: PyObjectRef, vm: &VirtualMachine) -> PyResult { |