MCPcopy Index your code
hub / github.com/ipython/ipython / RawText

Class RawText

IPython/lib/pretty.py:529–539  ·  view source on GitHub ↗

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])``.

Source from the content-addressed store, hash-verified

527
528
529class 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
542class CallExpression:

Callers 6

_defaultdict_pprintFunction · 0.85
_ordereddict_pprintFunction · 0.85
_deque_pprintFunction · 0.85
_counter_pprintFunction · 0.85
_userlist_pprintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…