add __iter__ for odict

This commit is contained in:
Maximilian Hils 2012-12-05 04:03:39 +01:00
parent f8e10bd6ae
commit 043d05bcde

View File

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