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

Method repr1

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

Source from the content-addressed store, hash-verified

1199 self.maxstring = self.maxother = 100
1200
1201 def repr1(self, x, level):
1202 if hasattr(type(x), '__name__'):
1203 methodname = 'repr_' + '_'.join(type(x).__name__.split())
1204 if hasattr(self, methodname):
1205 return getattr(self, methodname)(x, level)
1206 return cram(stripid(repr(x)), self.maxother)
1207
1208 def repr_string(self, x, level):
1209 test = cram(x, self.maxstring)

Callers

nothing calls this directly

Calls 4

cramFunction · 0.85
stripidFunction · 0.85
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected