MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __call__

Method __call__

example_code/item_033.py:139–143  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

137 self.found = False
138
139 def __call__(self, x):
140 if x in self.group:
141 self.found = True
142 return (0, x)
143 return (1, x)
144
145
146print("Example 10")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected