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

Method repr1

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

Source from the content-addressed store, hash-verified

569 return Repr.repr(self, object)
570
571 def repr1(self, x, level):
572 if hasattr(type(x), '__name__'):
573 methodname = 'repr_' + '_'.join(type(x).__name__.split())
574 if hasattr(self, methodname):
575 return getattr(self, methodname)(x, level)
576 return self.escape(cram(stripid(repr(x)), self.maxother))
577
578 def repr_string(self, x, level):
579 test = cram(x, self.maxstring)

Callers

nothing calls this directly

Calls 5

escapeMethod · 0.95
cramFunction · 0.85
stripidFunction · 0.85
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected