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
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 2020-10-12 18:08 by serhiy.storchaka.

Pull Requests
URL Status Linked Edit
PR 22671 open python-dev, 2020-10-12 16:24
Messages (1)
msg378508 - (view) Author: Kevin Wojniak (kwojniak_box) Date: 2020-10-12 16:21

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:

Suggested update:

> value is a string or integer that specifies the new value.
Date User Action Args
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