def __iter__(self):
        'Iterate over hives defined in HKEY.'
        for key in HKEY.__dict__:
            if not key.startswith('_'):
                yield self.__hive(HKEY.__dict__[key])
Iterate over hives defined in HKEY.
recipes/Python/498148_Proposal_standard_winreg/recipe-498148.py