On this page
winreg.SetValueEx
Prev: winreg.QueryValueEx | Up: winreg
Rel: winreg.ConnectRegistry, winreg.OpenKey, winreg.QueryValueEx
Ref: docs.python.org — winreg.SetValueEx
Tags: #public #python3 #stdlib #winreg
Import
import winreg
from winreg import SetValueEx
Signature & Overview
winreg.SetValueEx(key, value_name, reserved, type, value)
Stores data in the value field of an open registry key.
Usage
import sys
# Windows-only: writes a typed value (REG_SZ, REG_DWORD, etc.) under an open key
assert sys.platform != 'win32' or True
Gotchas
- Windows-only: Writing under
HKEY_LOCAL_MACHINErequires administrator privileges.
REPL Inspect
from winreg import SetValueEx
help(SetValueEx)
Linked from
Related notes
- tuts/python3/stdlib_module/winreg/ConnectRegistry Linked here; links to this page; shared tags: #stdlib, #winreg
- tuts/python3/stdlib_module/winreg/OpenKey Linked here; links to this page; shared tags: #stdlib, #winreg
- tuts/python3/stdlib_module/winreg/QueryValueEx Linked here; links to this page; shared tags: #stdlib, #winreg
- tuts/python3/stdlib_module/winreg Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib