MCPcopy Create free account
hub / github.com/ipython/ipython / __repr__

Method __repr__

IPython/core/display.py:633–639  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

631 self._check_data()
632
633 def __repr__(self):
634 if not self._show_mem_addr:
635 cls = self.__class__
636 r = "<%s.%s object>" % (cls.__module__, cls.__name__)
637 else:
638 r = super(DisplayObject, self).__repr__()
639 return r
640
641 def _check_data(self):
642 """Override in subclasses if there's something to check."""

Callers

nothing calls this directly

Calls 1

__repr__Method · 0.45

Tested by

no test coverage detected