def items(self):
            """ Return a list of (key,value) pairs for each subkey in the
            current key """

            # This method works just like the 'items' method
            # of a dictionary object.
            items, idx = [], 0
            while True:
                try:
                    key, value = self.enumkey(idx), self.enumvalue(idx)
                    items.append((key, value))
                    idx += 1
                except RegistryError:
                    break

            return items
 Return a list of (key,value) pairs for each subkey in the
            current key 
recipes/Python/476229_YARW__Yet_Another_Registry/recipe-476229.py