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

Method repr_instance

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

Source from the content-addressed store, hash-verified

634 repr_str = repr_string
635
636 def repr_instance(self, x, level):
637 try:
638 return self.escape(cram(stripid(repr(x)), self.maxstring))
639 except:
640 return self.escape('<%s instance>' % x.__class__.__name__)
641
642 repr_unicode = repr_string
643

Callers

nothing calls this directly

Calls 4

escapeMethod · 0.95
cramFunction · 0.85
stripidFunction · 0.85
reprFunction · 0.85

Tested by

no test coverage detected