def iteritems(self):
            """ Return an iterator over the (subkey,subvalue) pairs of the current key"""

            # Note: this is a generator
            # This method works just like the 'iteritems' method
            # of a dictionary object.                        
            idx = 0
            while True:
                try:
                    yield (self.enumkey(idx), self.enumvalue(idx))
                    idx += 1
                except RegistryError:
                    break
 Return an iterator over the (subkey,subvalue) pairs of the current key
recipes/Python/476229_YARW__Yet_Another_Registry/recipe-476229.py