(self, vm: &VirtualMachine)
| 144 | } |
| 145 | |
| 146 | pub fn length(self, vm: &VirtualMachine) -> PyResult<usize> { |
| 147 | self.length_opt(vm).ok_or_else(|| { |
| 148 | vm.new_type_error(format!( |
| 149 | "'{}' is not a sequence or has no len()", |
| 150 | self.obj.class() |
| 151 | )) |
| 152 | })? |
| 153 | } |
| 154 | |
| 155 | pub fn concat(self, other: &PyObject, vm: &VirtualMachine) -> PyResult { |
| 156 | if let Some(f) = self.slots().concat.load() { |
no test coverage detected