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

Method repr1

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

Source from the content-addressed store, hash-verified

1191 self.maxstring = self.maxother = 100
1192
1193 def repr1(self, x, level):
1194 if hasattr(type(x), '__name__'):
1195 methodname = 'repr_' + '_'.join(type(x).__name__.split())
1196 if hasattr(self, methodname):
1197 return getattr(self, methodname)(x, level)
1198 return cram(stripid(repr(x)), self.maxother)
1199
1200 def repr_string(self, x, level):
1201 test = cram(x, self.maxstring)

Callers

nothing calls this directly

Calls 5

cramFunction · 0.85
stripidFunction · 0.85
typeClass · 0.50
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected