Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __getitem__
Method
__getitem__
Lib/calendar.py:105–110 ·
view source on GitHub ↗
(self, i)
Source
from the content-addressed store, hash-verified
103
self.format = format
104
105
def
__getitem__(self, i):
106
funcs = self._months[i]
107
if
isinstance(i, slice):
108
return
[f(self.format)
for
f in funcs]
109
else
:
110
return
funcs(self.format)
111
112
def
__len__(self):
113
return
13
Callers
nothing calls this directly
Calls
1
f
Function · 0.70
Tested by
no test coverage detected