MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __repr__

Method __repr__

example_code/item_012.py:108–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.y = y
107
108 def __repr__(self):
109 return f"BetterClass({self.x!r}, {self.y!r})"
110
111
112print("Example 10")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected