Python _winreg library
<p>I am trying to play around with the _winreg library to access and modify windows registry keys.</p>

<p>The problem I am facing is that _winreg doesn't show all the subkeys.
For eg, I am trying to print all the subkeys of : <strong>HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft</strong> using:</p>

<pre><code>import _winreg
pyKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\JavaSoft')
try:
   while True:
   print _winreg.EnumKey(pyKey, i)
      i = i+1
except WindowsError:
   pass
</code></pre>

<p>But this doesnt print all the subkeys.</p>

<p><strong>Expected subkeys:</strong>
Java Development Kit,
Java Plug-in,
Java Runtime Environment,
Java Web Start,
Prefs</p>

<p><strong>Output I am getting:</strong>
Auto Update,
Java Plug-in,
Java Runtime Environment,
Java Update,
Java Web Start,
Prefs</p>

<p>There's a difference in the two lists...! Am i missing something here...?</p>

<p>Thanks,
Parag</p>
