You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
winreg SetValue(Ex) should mention integer as an acceptable value #86184
Activity
kainjow commentedon Oct 12, 2020
On https://docs.python.org/3/library/winreg.html
For SetValue and SetValueEx is says:
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:
aisk commentedon Nov 13, 2025
SetValueExsupport using other types as the value, butSetValuedoes not according to it's defination:cpython/PC/winreg.c
Lines 1719 to 1723 in d7862e9