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

Method __repr__

Lib/doctest.py:570–579  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

568 self.lineno = lineno
569
570 def __repr__(self):
571 if len(self.examples) == 0:
572 examples = 'no examples'
573 elif len(self.examples) == 1:
574 examples = '1 example'
575 else:
576 examples = '%d examples' % len(self.examples)
577 return ('<%s %s from %s:%s (%s)>' %
578 (self.__class__.__name__,
579 self.name, self.filename, self.lineno, examples))
580
581 def __eq__(self, other):
582 if type(self) is not type(other):

Callers 1

__repr__Method · 0.45

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected