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

Method __lt__

Lib/doctest.py:596–603  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

594
595 # This lets us sort tests by name:
596 def __lt__(self, other):
597 if not isinstance(other, DocTest):
598 return NotImplemented
599 self_lno = self.lineno if self.lineno is not None else -1
600 other_lno = other.lineno if other.lineno is not None else -1
601 return ((self.name, self.filename, self_lno, id(self))
602 <
603 (other.name, other.filename, other_lno, id(other)))
604
605######################################################################
606## 3. DocTestParser

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
idFunction · 0.85

Tested by

no test coverage detected