Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ S
Class
S
Lib/test/test_re.py:28–30 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
# cover most of the code.
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
7
__getitem__
Method · 0.70
test_basic_re_sub
Method · 0.70
test_re_split
Method · 0.70
test_re_findall
Method · 0.70
test_re_match
Method · 0.70
test_re_fullmatch
Method · 0.70
test_match_repr
Method · 0.70
Calls
no outgoing calls
Tested by
7
__getitem__
Method · 0.56
test_basic_re_sub
Method · 0.56
test_re_split
Method · 0.56
test_re_findall
Method · 0.56
test_re_match
Method · 0.56
test_re_fullmatch
Method · 0.56
test_match_repr
Method · 0.56