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

Method __repr__

Tools/clinic/libclinic/cpp.py:50–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.line_number = 0
49
50 def __repr__(self) -> str:
51 parts = (
52 str(id(self)),
53 f"line={self.line_number}",
54 f"condition={self.condition()!r}"
55 )
56 return f"<clinic.Monitor {' '.join(parts)}>"
57
58 def status(self) -> str:
59 return str(self.line_number).rjust(4) + ": " + self.condition()

Callers

nothing calls this directly

Calls 4

conditionMethod · 0.95
strFunction · 0.85
idFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected