(zelf: &Py<Self>, i: OptionalArg<isize>, vm: &VirtualMachine)
| 915 | |
| 916 | #[pymethod] |
| 917 | fn pop(zelf: &Py<Self>, i: OptionalArg<isize>, vm: &VirtualMachine) -> PyResult { |
| 918 | let mut w = zelf.try_resizable(vm)?; |
| 919 | if w.len() == 0 { |
| 920 | Err(vm.new_index_error("pop from empty array")) |
| 921 | } else { |
| 922 | w.pop(i.unwrap_or(-1), vm) |
| 923 | } |
| 924 | } |
| 925 | |
| 926 | #[pymethod] |
| 927 | pub(crate) fn tobytes(&self) -> Vec<u8> { |
no test coverage detected