Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __len__
Method
__len__
Lib/test/test_bisect.py:17–18 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
15
self.last_insert = None
16
17
def
__len__(self):
18
return
self.stop - self.start
19
20
def
__getitem__(self, idx):
21
n = self.stop - self.start
Callers
5
spam_args_attrs_and_builtins
Function · 0.45
test_unbound_methods
Method · 0.45
test_member_length
Method · 0.45
test_member_length
Method · 0.45
test_as_dict
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected