diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-03 04:54:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-03 04:54:41 (GMT) |
commit | bedebbdfb1b0f7d8815426dc5a9d761033c731cd (patch) | |
tree | 4a65f7385c026ad21fe185473ae6b64c65081e5f | |
parent | f42cc45f1b4c7a1e21d86abbccdb1aa9185cbaab (diff) | |
download | cpython-bedebbdfb1b0f7d8815426dc5a9d761033c731cd.zip cpython-bedebbdfb1b0f7d8815426dc5a9d761033c731cd.tar.gz cpython-bedebbdfb1b0f7d8815426dc5a9d761033c731cd.tar.bz2 |
Added support for .iteritems(), .iterkeys(), .itervalues().
-rw-r--r-- | Lib/UserDict.py | 3 |
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): |