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

Method __bool__

example_code/item_047.py:162–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160 return before
161
162 def __bool__(self):
163 return self.current > 0
164
165
166print("Example 6")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected