(&self, vm: &VirtualMachine)
| 685 | |
| 686 | #[inline] |
| 687 | pub(crate) fn repr(&self, vm: &VirtualMachine) -> PyResult<String> { |
| 688 | use crate::literal::escape::UnicodeEscape; |
| 689 | UnicodeEscape::new_repr(self.as_wtf8()) |
| 690 | .str_repr() |
| 691 | .to_string() |
| 692 | .ok_or_else(|| vm.new_overflow_error("string is too long to generate repr")) |
| 693 | } |
| 694 | |
| 695 | #[pymethod] |
| 696 | fn lower(&self) -> Self { |
no test coverage detected