(&self, sep: PyStrRef, vm: &VirtualMachine)
| 1232 | |
| 1233 | #[pymethod] |
| 1234 | fn rpartition(&self, sep: PyStrRef, vm: &VirtualMachine) -> PyResult { |
| 1235 | let (back, has_mid, front) = self.as_wtf8().py_partition( |
| 1236 | sep.as_wtf8(), |
| 1237 | || self.as_wtf8().rsplitn(2, sep.as_wtf8()), |
| 1238 | vm, |
| 1239 | )?; |
| 1240 | Ok(( |
| 1241 | self.new_substr(front), |
| 1242 | if has_mid { |
| 1243 | sep |
| 1244 | } else { |
| 1245 | vm.ctx.empty_str.to_owned() |
| 1246 | }, |
| 1247 | self.new_substr(back), |
| 1248 | ) |
| 1249 | .to_pyobject(vm)) |
| 1250 | } |
| 1251 | |
| 1252 | #[pymethod] |
| 1253 | fn istitle(&self) -> bool { |
nothing calls this directly
no test coverage detected