diff options
Diffstat (limited to 'Doc/library/winreg.rst')
-rw-r--r-- | Doc/library/winreg.rst | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index f349fdf..f42e7f2 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -39,8 +39,8 @@ This module offers the following functions: *key* is the predefined handle to connect to. - The return value is the handle of the opened key. If the function fails, an - :exc:`EnvironmentError` exception is raised. + The return value is the handle of the opened key. If the function fails, a + :exc:`WindowsError` exception is raised. .. function:: CreateKey(key, sub_key) @@ -57,8 +57,8 @@ This module offers the following functions: If the key already exists, this function opens the existing key. - The return value is the handle of the opened key. If the function fails, an - :exc:`EnvironmentError` exception is raised. + The return value is the handle of the opened key. If the function fails, a + :exc:`WindowsError` exception is raised. .. function:: DeleteKey(key, sub_key) @@ -74,7 +74,7 @@ This module offers the following functions: *This method can not delete keys with subkeys.* If the method succeeds, the entire key, including all of its values, is removed. - If the method fails, an :exc:`EnvironmentError` exception is raised. + If the method fails, a :exc:`WindowsError` exception is raised. .. function:: DeleteValue(key, value) @@ -97,7 +97,7 @@ This module offers the following functions: *index* is an integer that identifies the index of the key to retrieve. The function retrieves the name of one subkey each time it is called. It is - typically called repeatedly until an :exc:`EnvironmentError` exception is + typically called repeatedly until a :exc:`WindowsError` exception is raised, indicating, no more values are available. @@ -111,7 +111,7 @@ This module offers the following functions: *index* is an integer that identifies the index of the value to retrieve. The function retrieves the name of one subkey each time it is called. It is - typically called repeatedly, until an :exc:`EnvironmentError` exception is + typically called repeatedly, until a :exc:`WindowsError` exception is raised, indicating no more values. The result is a tuple of 3 items: @@ -199,7 +199,7 @@ This module offers the following functions: The result is a new handle to the specified key. - If the function fails, :exc:`EnvironmentError` is raised. + If the function fails, :exc:`WindowsError` is raised. .. function:: OpenKeyEx() @@ -243,9 +243,10 @@ This module offers the following functions: associated. If this parameter is ``None`` or empty, the function retrieves the value set by the :func:`SetValue` method for the key identified by *key*. - Values in the registry have name, type, and data components. This method + Values in the registry have name, type, and data components. This method retrieves the data for a key's first value that has a NULL name. But the - underlying API call doesn't return the type, Lame Lame Lame, DO NOT USE THIS!!! + underlying API call doesn't return the type, so always use + :func:`QueryValueEx` if possible. .. function:: QueryValueEx(key, value_name) |