(key)
return d
Convert a registry key's values to a dictionary.
Convert a registry key's values to a dictionary.
Convert a registry key s values to a dictionary .
def valuesToDict(key):
    """Convert a registry key's values to a dictionary."""
    d = {}
    size = _winreg.QueryInfoKey(key)[1]
    for i in xrange(size):
        d[_winreg.EnumValue(key, i)[0]] = _winreg.EnumValue(key, i)[1]
    return d
def valuesToDict ( key ) : d = { } size = _winreg . QueryInfoKey ( key ) [ 1 ] for i in xrange ( size ) : d [ _winreg . EnumValue ( key , i ) [ 0 ] ] = _winreg . EnumValue ( key , i ) [ 1 ] return d