Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ reduce
Method
reduce
example_code/item_052.py:86–87 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
84
self.result = data.count(
"\n"
)
85
86
def
reduce(self, other):
87
self.result += other.result
88
89
90
print(
"Example 5"
)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected