get registry information in python

James J. Besemer jb at
Thu Aug 15 07:49:58 EDT 2002

Matt Gerrans wrote:

> > The number of entries can be retrieved via RegQueryInfoKey( key ).
> Ah ha -- I was in the habit of iterating through a range with EnumKey()
> until an exception occurred.

Forgot to point out -- RegQueryInfoKey() returns both the number of Keys
and the number of Values.



James J. Besemer  503-280-0838 voice  503-280-0375 fax
mailto:jb at

More information about the Python-list mailing list