1.1 --- a/lib/__builtins__/dict.py Wed Nov 30 18:42:37 2016 +0100
1.2 +++ b/lib/__builtins__/dict.py Wed Nov 30 18:44:58 2016 +0100
1.3 @@ -110,7 +110,7 @@
1.4
1.5 if i is None:
1.6 if default is self.MISSING:
1.7 - raise KeyError
1.8 + raise KeyError(key)
1.9 else:
1.10 return default
1.11
1.12 @@ -134,7 +134,12 @@
1.13
1.14 return native._dict_values(self)
1.15
1.16 - def items(self): pass
1.17 + def items(self):
1.18 +
1.19 + "Return the items, each being a (key, value) tuple, in this dictionary."
1.20 +
1.21 + return zip([self.keys(), self.values()])
1.22 +
1.23 def get(self, key): pass
1.24 def setdefault(self, key, value): pass
1.25 def update(self, other): pass