Skip to content
Snippets Groups Projects
Commit f3c8db3d authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

obsstore: add a __len__ method

We can already use "for mark in store:" it make sense to allow
"len(store)" too.
parent 224a058f
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,9 @@
def __iter__(self):
return iter(self._all)
def __len__(self):
return len(self._all)
def __nonzero__(self):
return bool(self._all)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment