summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-03 04:54:41 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-03 04:54:41 (GMT)
commitbedebbdfb1b0f7d8815426dc5a9d761033c731cd (patch)
tree4a65f7385c026ad21fe185473ae6b64c65081e5f
parentf42cc45f1b4c7a1e21d86abbccdb1aa9185cbaab (diff)
downloadcpython-bedebbdfb1b0f7d8815426dc5a9d761033c731cd.zip
cpython-bedebbdfb1b0f7d8815426dc5a9d761033c731cd.tar.gz
cpython-bedebbdfb1b0f7d8815426dc5a9d761033c731cd.tar.bz2
Added support for .iteritems(), .iterkeys(), .itervalues().
-rw-r--r--Lib/UserDict.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py
index bbd4ca0..204ca15 100644
--- a/Lib/UserDict.py
+++ b/Lib/UserDict.py
@@ -22,6 +22,9 @@ class UserDict:
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):