Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ evaluate
Method
evaluate
example_code/item_050.py:73–76 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
71
self.right = right
72
73
def
evaluate(self):
74
left = self.left.evaluate()
75
right = self.right.evaluate()
76
return
left + right
77
78
def
pretty(self):
79
left_str = self.left.pretty()
Callers
nothing calls this directly
Calls
1
evaluate
Method · 0.45
Tested by
no test coverage detected