Skip to content

Commit 555c2fd

Browse files
committed
__getitem__ for pure python sortedset
1 parent f211f19 commit 555c2fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cassandra/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ def __init__(self, iterable=()):
504504
def __len__(self):
505505
return len(self._items)
506506

507+
def __getitem__(self, i):
508+
return self._items[i]
509+
507510
def __iter__(self):
508511
return iter(self._items)
509512

0 commit comments

Comments
 (0)