def items(self):
        """
        @return: a L{list} of 2-tuples containing key/value pairs.
        """
        items = []
        keys = self.keys()
        for key in keys:
            items.append((key, self[key]))
        return items

        @return: a L{list} of 2-tuples containing key/value pairs.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/persisted/dirdbm.py