Re: winreg module, need help to understand why i'm getting exception

2008-04-19 Thread s0suk3
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:

Re: winreg module, need help to understand why i'm getting exception

2008-04-19 Thread s0suk3
On Apr 19, 6:20 am, hellt <[EMAIL PROTECTED]> wrote: > HI all, i found winreg module > fromhttp://www.rutherfurd.net/python/winreg/index.html > very useful and simple, instead _winreg. > > But i have a problem with this module, in its iterable part. > > look at the following code > > key = Key(HKL

winreg module, need help to understand why i'm getting exception

2008-04-19 Thread hellt
HI all, i found winreg module from http://www.rutherfurd.net/python/winreg/index.html very useful and simple, instead _winreg. But i have a problem with this module, in its iterable part. look at the following code key = Key(HKLM,r"SYSTEM\CurrentControlSet\Services\Tcpip\Enum") for i in key.val