Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ pretty
Method
pretty
example_code/item_049.py:176–179 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
174
175
176
def
pretty(self):
177
left_str = self.left.pretty()
178
right_str = self.right.pretty()
179
return
f
"({left_str} + {right_str})"
180
181
class
MultiplyNodeAlt(NodeAlt):
182
def
__init__(self, left, right):
Callers
nothing calls this directly
Calls
1
pretty
Method · 0.45
Tested by
no test coverage detected