(&self, index: OptionalArg<isize>, vm: &VirtualMachine)
| 576 | |
| 577 | #[pymethod] |
| 578 | fn pop(&self, index: OptionalArg<isize>, vm: &VirtualMachine) -> PyResult<u8> { |
| 579 | let elements = &mut self.try_resizable(vm)?.elements; |
| 580 | let index = elements |
| 581 | .wrap_index(index.unwrap_or(-1)) |
| 582 | .ok_or_else(|| vm.new_index_error("index out of range"))?; |
| 583 | Ok(elements.remove(index)) |
| 584 | } |
| 585 | |
| 586 | #[pymethod] |
| 587 | fn insert(&self, index: isize, object: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
nothing calls this directly
no test coverage detected