From 043d05bcdeae482ca1d9b80375a1922e54896a6b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 5 Dec 2012 04:03:39 +0100 Subject: [PATCH] add __iter__ for odict --- netlib/odict.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netlib/odict.py b/netlib/odict.py index 629fcade0..bddb38773 100644 --- a/netlib/odict.py +++ b/netlib/odict.py @@ -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.