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

Class CustomSequence

Lib/test/test_collections.py:1594–1600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1592 def test_issue26915(self):
1593 # Container membership test should check identity first
1594 class CustomSequence(Sequence):
1595 def __init__(self, seq):
1596 self._seq = seq
1597 def __getitem__(self, index):
1598 return self._seq[index]
1599 def __len__(self):
1600 return len(self._seq)
1601
1602 nan = float('nan')
1603 obj = support.NEVER_EQ

Callers 1

test_issue26915Method · 0.85

Calls

no outgoing calls

Tested by 1

test_issue26915Method · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…