(&self, slice: &PySlice, vm: &VirtualMachine)
| 155 | } |
| 156 | |
| 157 | fn getitem_by_slice(&self, slice: &PySlice, vm: &VirtualMachine) -> PyResult { |
| 158 | let mut other = self.new_view(); |
| 159 | other.init_slice(slice, 0, vm)?; |
| 160 | other.init_len(); |
| 161 | |
| 162 | Ok(other.into_ref(&vm.ctx).into()) |
| 163 | } |
| 164 | |
| 165 | fn getitem_by_multi_idx(&self, indexes: &[isize], vm: &VirtualMachine) -> PyResult { |
| 166 | let pos = self.pos_from_multi_index(indexes, vm)?; |
no test coverage detected