Sorry, the above post is not complete. This is the rest: # There should be a for or a while loop around here try: name = _winreg.EnumValue(key, index) except EnvironmentError: # It raises WindowsError, but the _winreg documentation # recommends catching EnvironmentError break else: # do something with 'name' ...
Anyway, I'd recommend using _winreg instead of the module you're using, since it clearly has errors, and it's not on the standard library. -- http://mail.python.org/mailman/listinfo/python-list