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

Method repr1

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

Source from the content-addressed store, hash-verified

550 return Repr.repr(self, object)
551
552 def repr1(self, x, level):
553 if hasattr(type(x), '__name__'):
554 methodname = 'repr_' + '_'.join(type(x).__name__.split())
555 if hasattr(self, methodname):
556 return getattr(self, methodname)(x, level)
557 return self.escape(cram(stripid(repr(x)), self.maxother))
558
559 def repr_string(self, x, level):
560 test = cram(x, self.maxstring)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected