Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ G
Class
G
Lib/test/test_heapq.py:433–438 ·
view source on GitHub ↗
Sequence using __getitem__
Source
from the content-addressed store, hash-verified
431
yield
i
432
433
class
G:
434
'Sequence using __getitem__'
435
def
__init__(self, seqn):
436
self.seqn = seqn
437
def
__getitem__(self, i):
438
return
self.seqn[i]
439
440
class
I:
441
'Sequence using iterator protocol'
Callers
1
L
Function · 0.70
Calls
no outgoing calls
Tested by
1
L
Function · 0.56