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

Callers 4

external_getitemFunction · 0.45
test_unbound_methodsMethod · 0.45
__getitem__Method · 0.45
test_as_dictMethod · 0.45

Calls 2

superClass · 0.85
SClass · 0.70

Tested by

no test coverage detected