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

Method repr_instance

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

Source from the content-addressed store, hash-verified

1217 repr_str = repr_string
1218
1219 def repr_instance(self, x, level):
1220 try:
1221 return cram(stripid(repr(x)), self.maxstring)
1222 except:
1223 return '<%s instance>' % x.__class__.__name__
1224
1225class TextDoc(Doc):
1226 """Formatter class for text documentation."""

Callers

nothing calls this directly

Calls 2

cramFunction · 0.85
stripidFunction · 0.85

Tested by

no test coverage detected