Object such that ``p.pretty(RawText(value))`` is the same as ``p.text(value)``. An example usage of this would be to show a list as binary numbers, using ``p.pretty([RawText(bin(i)) for i in integers])``.
| 527 | |
| 528 | |
| 529 | class RawText: |
| 530 | """ Object such that ``p.pretty(RawText(value))`` is the same as ``p.text(value)``. |
| 531 | |
| 532 | An example usage of this would be to show a list as binary numbers, using |
| 533 | ``p.pretty([RawText(bin(i)) for i in integers])``. |
| 534 | """ |
| 535 | def __init__(self, value): |
| 536 | self.value = value |
| 537 | |
| 538 | def _repr_pretty_(self, p, cycle): |
| 539 | p.text(self.value) |
| 540 | |
| 541 | |
| 542 | class CallExpression: |
no outgoing calls
no test coverage detected
searching dependent graphs…