Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __getitem__
Method
__getitem__
Lib/test/test_re.py:29–30 ·
view source on GitHub ↗
(self, index)
Source
from the content-addressed store, hash-verified
27
28
class
S(str):
29
def
__getitem__(self, index):
30
return
S(super().__getitem__(index))
31
32
class
B(bytes):
33
def
__getitem__(self, index):
Callers
4
external_getitem
Function · 0.45
test_unbound_methods
Method · 0.45
__getitem__
Method · 0.45
test_as_dict
Method · 0.45
Calls
2
super
Class · 0.85
S
Class · 0.70
Tested by
no test coverage detected