code: def items(self):
          
          r = []
          for key in self._safe_keys():
              try:
                  r.append((key, self[key]))
              except KeyError:
                  pass
          return r
docs: Return a copy of the dictionary's list of (key, value) pairs.