This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: winreg SetValue(Ex) should mention integer as an acceptable value
Type: enhancement Stage: patch review
Components: Documentation, Windows Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, kwojniak_box, paul.moore, python-dev, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2020-10-12 16:21 by kwojniak_box, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 22671 closed python-dev, 2020-10-12 16:24
Messages (1)
msg378508 - (view) Author: Kevin Wojniak (kwojniak_box) Date: 2020-10-12 16:21
On https://docs.python.org/3/library/winreg.html

For SetValue and SetValueEx is says:

> value is a string that specifies the new value.

but value can also be an integer if the type is DWORD. Here's a test that shows that: https://github.com/python/cpython/blob/3.9/Lib/test/test_winreg.py#L339

Suggested update:

> value is a string or integer that specifies the new value.
History
Date User Action Args
2022-04-11 14:59:36adminsetgithub: 86184
2020-10-12 18:08:05serhiy.storchakasetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows
2020-10-12 18:07:57serhiy.storchakasetnosy: + serhiy.storchaka

type: enhancement
versions: + Python 3.8, Python 3.10
2020-10-12 16:24:28python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request21644
stage: patch review
2020-10-12 16:21:08kwojniak_boxcreate