MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / repr_instance

Method repr_instance

tools/python-3.11.9-amd64/Lib/pydoc.py:1211–1215  ·  view source on GitHub ↗
(self, x, level)

Source from the content-addressed store, hash-verified

1209 repr_str = repr_string
1210
1211 def repr_instance(self, x, level):
1212 try:
1213 return cram(stripid(repr(x)), self.maxstring)
1214 except:
1215 return '<%s instance>' % x.__class__.__name__
1216
1217class TextDoc(Doc):
1218 """Formatter class for text documentation."""

Callers

nothing calls this directly

Calls 2

cramFunction · 0.85
stripidFunction · 0.85

Tested by

no test coverage detected