Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
121
print(
"Example 12"
)
122
class
StringifiableBetterClass(BetterClass):
123
def
__str__(self):
124
return
f
"({self.x}, {self.y})"
125
126
127
print(
"Example 13"
)
Callers
1
item_012.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected