(arg: OptionalArg<ArgIndex>, vm: &VirtualMachine)
| 23 | // Handles objects that implement __index__ and makes sure index fits in needed isize. |
| 24 | #[inline] |
| 25 | fn handle_default(arg: OptionalArg<ArgIndex>, vm: &VirtualMachine) -> PyResult<Option<isize>> { |
| 26 | arg.into_option() |
| 27 | .map(|v| v.into_int_ref().try_to_primitive(vm)) |
| 28 | .transpose() |
| 29 | } |
| 30 | |
| 31 | // Handles defaults for lo, hi. |
| 32 | // |
no test coverage detected