MCPcopy Index your code
hub / github.com/python/cpython / repr_instance

Method repr_instance

Lib/pydoc.py:591–595  ·  view source on GitHub ↗
(self, x, level)

Source from the content-addressed store, hash-verified

589 repr_str = repr_string
590
591 def repr_instance(self, x, level):
592 try:
593 return self.escape(cram(stripid(repr(x)), self.maxstring))
594 except:
595 return self.escape('<%s instance>' % x.__class__.__name__)
596
597 repr_unicode = repr_string
598

Callers

nothing calls this directly

Calls 3

escapeMethod · 0.95
cramFunction · 0.85
stripidFunction · 0.85

Tested by

no test coverage detected