Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ pretty
Method
pretty
example_code/item_050.py:78–81 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
76
return
left + right
77
78
def
pretty(self):
79
left_str = self.left.pretty()
80
right_str = self.right.pretty()
81
return
f
"({left_str} + {right_str})"
82
83
84
class
MultiplyNodeAlt(NodeAlt):
Callers
nothing calls this directly
Calls
1
pretty
Method · 0.45
Tested by
no test coverage detected