MCPcopy 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
28class S(str):
29 def __getitem__(self, index):
30 return S(super().__getitem__(index))
31
32class B(bytes):
33 def __getitem__(self, index):

Callers 7

__getitem__Method · 0.70
test_basic_re_subMethod · 0.70
test_re_splitMethod · 0.70
test_re_findallMethod · 0.70
test_re_matchMethod · 0.70
test_re_fullmatchMethod · 0.70
test_match_reprMethod · 0.70

Calls

no outgoing calls

Tested by 7

__getitem__Method · 0.56
test_basic_re_subMethod · 0.56
test_re_splitMethod · 0.56
test_re_findallMethod · 0.56
test_re_matchMethod · 0.56
test_re_fullmatchMethod · 0.56
test_match_reprMethod · 0.56