(zelf: &PyObject, vm: &VirtualMachine)
| 226 | |
| 227 | #[pyslot] |
| 228 | fn slot_str(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<PyStrRef> { |
| 229 | let zelf = zelf.downcast_ref::<Self>().expect("expected bytes"); |
| 230 | PyBytesInner::warn_on_str("str() on a bytes instance", vm)?; |
| 231 | Ok(vm.ctx.new_str(zelf.inner.repr_bytes(vm)?)) |
| 232 | } |
| 233 | |
| 234 | fn __add__(&self, other: ArgBytesLike) -> Vec<u8> { |
| 235 | self.inner.add(&other.borrow_buf()) |
nothing calls this directly
no test coverage detected