MCPcopy Index your code
hub / github.com/RustPython/RustPython / CustomSequence

Class CustomSequence

Lib/test/test_collections.py:1593–1599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_issue26915Method · 0.85

Calls

no outgoing calls

Tested by 1

test_issue26915Method · 0.68