Skip to content

Commit 8273644

Browse files
committed
Update by review comments
1 parent 5a804d7 commit 8273644

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/library/winreg.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ This module offers the following functions:
488488
*type* is an integer that specifies the type of the data. See
489489
:ref:`Value Types <value-types>` for the available types.
490490

491-
*value* is the new value to set. Accepts str, int, list of str, bytes-like object,
492-
or None depending on the *type* parameter.
491+
*value* is the new value to set. The acceptable types depend on the *type*
492+
parameter.
493493

494494
This method can also set additional value and type information for the specified
495495
key. The key identified by the key parameter must have been opened with
@@ -692,7 +692,8 @@ For more information, see `Registry Value Types
692692
.. data:: REG_BINARY
693693

694694
Binary data in any form.
695-
*value* must be a :term:`bytes-like object` in Python for this type.
695+
*value* must be a :term:`bytes-like object` for this type.
696+
Returns a :class:`bytes` object, or :const:`None` for empty values.
696697

697698
.. data:: REG_DWORD
698699

@@ -725,6 +726,7 @@ For more information, see `Registry Value Types
725726
A sequence of null-terminated strings, terminated by two null characters.
726727
(Python handles this termination automatically.)
727728
*value* must be a :class:`list` of :class:`str` in Python for this type.
729+
Returns a :class:`list` of :class:`str`, or an empty list for empty values.
728730

729731
.. data:: REG_NONE
730732

0 commit comments

Comments
 (0)