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

Method __str__

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

Source from the content-addressed store, hash-verified

121print("Example 12")
122class StringifiableBetterClass(BetterClass):
123 def __str__(self):
124 return f"({self.x}, {self.y})"
125
126
127print("Example 13")

Callers 1

item_012.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected