scylla-gdb.py: boost_intrusive_list: add __len__() operator

Message-Id: <20200818141340.2352666-1-bdenes@scylladb.com>
This commit is contained in:
Botond Dénes
2020-08-18 17:13:40 +03:00
committed by Tomasz Grabiec
parent fb6c011b52
commit 077dc7c021

View File

@@ -75,6 +75,9 @@ class intrusive_list:
def __bool__(self):
return self.__nonzero__()
def __len__(self):
return len(list(self))
class std_optional:
def __init__(self, ref):