(&self, sep: PyBytesInner, vm: &VirtualMachine)
| 481 | |
| 482 | #[pymethod] |
| 483 | fn rpartition(&self, sep: PyBytesInner, vm: &VirtualMachine) -> PyResult<PyTupleRef> { |
| 484 | let value = self.inner(); |
| 485 | let (back, has_mid, front) = value.rpartition(&sep, vm)?; |
| 486 | Ok(vm.new_tuple(( |
| 487 | vm.ctx.new_bytearray(front.to_vec()), |
| 488 | vm.ctx |
| 489 | .new_bytearray(if has_mid { sep.elements } else { Vec::new() }), |
| 490 | vm.ctx.new_bytearray(back.to_vec()), |
| 491 | ))) |
| 492 | } |
| 493 | |
| 494 | #[pymethod] |
| 495 | fn expandtabs(&self, options: anystr::ExpandTabsArgs) -> Self { |
nothing calls this directly
no test coverage detected