Merge pull request #4 from mhils/master

Add __iter__ to ODict
This commit is contained in:
Aldo Cortesi 2012-12-04 19:33:05 -08:00
commit 06d4ed9ba1

View File

@ -22,6 +22,9 @@ class ODict:
def __eq__(self, other): def __eq__(self, other):
return self.lst == other.lst return self.lst == other.lst
def __iter__(self):
return self.lst.__iter__()
def __getitem__(self, k): def __getitem__(self, k):
""" """
Returns a list of values matching key. Returns a list of values matching key.