Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ StringifiableBetterClass
Class
StringifiableBetterClass
example_code/item_012.py:122–124 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
120
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.85
Calls
no outgoing calls
Tested by
no test coverage detected