From 47cde3902b958bbc0a065f5757435ab00499d43c Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 12 Oct 2020 09:23:51 -0700 Subject: [PATCH 1/2] bpo-42018: winreg SetValue(Ex) should mention integer as an acceptable value https://bugs.python.org/issue42018 --- Doc/library/winreg.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index dccb7db27e90cc..b048228c4ee522 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -443,7 +443,7 @@ This module offers the following functions: :const:`REG_SZ`, meaning only strings are supported. Use the :func:`SetValueEx` function for support for other data types. - *value* is a string that specifies the new value. + *value* is a string or integer that specifies the new value. If the key specified by the *sub_key* parameter does not exist, the SetValue function creates it. @@ -473,7 +473,7 @@ This module offers the following functions: *type* is an integer that specifies the type of the data. See :ref:`Value Types ` for the available types. - *value* is a string that specifies the new value. + *value* is a string or integer that specifies the new value. This method can also set additional value and type information for the specified key. The key identified by the key parameter must have been opened with From d335efec97fc375fd75b53c3ba030ffdb21800c9 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Sat, 17 Oct 2020 21:06:41 -0700 Subject: [PATCH 2/2] Update Doc/library/winreg.rst Co-authored-by: Steve Dower --- Doc/library/winreg.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index b048228c4ee522..d85084fdef3a55 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -443,7 +443,7 @@ This module offers the following functions: :const:`REG_SZ`, meaning only strings are supported. Use the :func:`SetValueEx` function for support for other data types. - *value* is a string or integer that specifies the new value. + *value* is a string that specifies the new value. If the key specified by the *sub_key* parameter does not exist, the SetValue function creates it. @@ -802,4 +802,3 @@ integer handle, and also disconnect the Windows handle from the handle object. will automatically close *key* when control leaves the :keyword:`with` block. -