def __iter__(self):
'Iterate over the value names.'
values, index = [], 0
try:
while True:
values.append(_winreg.EnumValue(self.__self, index)[0])
index += 1
except EnvironmentError:
for value in values:
yield value
评论列表
文章目录