Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ pretty
Method
pretty
example_code/item_050.py:94–97 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
92
return
left + right
93
94
def
pretty(self):
95
left_str = self.left.pretty()
96
right_str = self.right.pretty()
97
return
f
"({left_str} * {right_str})"
98
99
100
print(
"Example 2"
)
Callers
nothing calls this directly
Calls
1
pretty
Method · 0.45
Tested by
no test coverage detected