Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __bool__
Method
__bool__
extra_tests/snippets/builtin_bool.py:168–169 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
166
167
class
Foo(object):
168
def
__bool__(self):
169
return
self
170
171
172
check(Foo())
Callers
2
stdlib_abc_number.py
File · 0.45
builtin_type.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected