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

Method __getitem__

Lib/calendar.py:124–129  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

122 self.format = format
123
124 def __getitem__(self, i):
125 funcs = self._days[i]
126 if isinstance(i, slice):
127 return [f(self.format) for f in funcs]
128 else:
129 return funcs(self.format)
130
131 def __len__(self):
132 return 7

Callers

nothing calls this directly

Calls 1

fFunction · 0.70

Tested by

no test coverage detected