MCPcopy Index your code
hub / github.com/python/cpython / __bool__

Method __bool__

Lib/test/test_descr.py:2348–2349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2346 def __init__(self, x):
2347 self.x = x
2348 def __bool__(self):
2349 return not not self.x
2350 def __hash__(self):
2351 return hash(self.x)
2352 def __eq__(self, other):

Callers 1

test_intsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected