MCPcopy Index your code
hub / github.com/python/cpython / __getitem__

Method __getitem__

Lib/re/_parser.py:168–171  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

166 def __delitem__(self, index):
167 del self.data[index]
168 def __getitem__(self, index):
169 if isinstance(index, slice):
170 return SubPattern(self.state, self.data[index])
171 return self.data[index]
172 def __setitem__(self, index, code):
173 self.data[index] = code
174 def insert(self, index, code):

Callers

nothing calls this directly

Calls 1

SubPatternClass · 0.85

Tested by

no test coverage detected