From bedebbdfb1b0f7d8815426dc5a9d761033c731cd Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 3 May 2001 04:54:41 +0000 Subject: [PATCH] Added support for .iteritems(), .iterkeys(), .itervalues(). --- Lib/UserDict.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/UserDict.py b/Lib/UserDict.py index bbd4ca04c4a..204ca150feb 100644 --- a/Lib/UserDict.py +++ b/Lib/UserDict.py @@ -22,6 +22,9 @@ def copy(self): return copy.copy(self) def keys(self): return self.data.keys() def items(self): return self.data.items() + def iteritems(self): return self.data.iteritems() + def iterkeys(self): return self.data.iterkeys() + def itervalues(self): return self.data.itervalues() def values(self): return self.data.values() def has_key(self, key): return self.data.has_key(key) def update(self, dict):