MCPcopy Index your code
hub / github.com/RustPython/RustPython / repr_instance

Method repr_instance

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

Source from the content-addressed store, hash-verified

1262 repr_str = repr_string
1263
1264 def repr_instance(self, x, level):
1265 try:
1266 return cram(stripid(repr(x)), self.maxstring)
1267 except:
1268 return '<%s instance>' % x.__class__.__name__
1269
1270class TextDoc(Doc):
1271 """Formatter class for text documentation."""

Callers

nothing calls this directly

Calls 3

cramFunction · 0.85
stripidFunction · 0.85
reprFunction · 0.85

Tested by

no test coverage detected