Permalink
Browse files

Implemented __len__ for DictList

  • Loading branch information...
buriy committed Jul 15, 2010
1 parent d4ebd2f commit dae57c01466cc000d14ef4ee61620565fdaf4c72
Showing with 3 additions and 0 deletions.
  1. +3 −0 configurator/containers.py
@@ -59,6 +59,9 @@ def __iadd__(self, key):
self._keys.append(key)
return self
+ def __len__(self):
+ return len(self._keys)
+
def __isub__(self, key):
self.set_type('list')
if key in self._keys:

0 comments on commit dae57c0

Please sign in to comment.