On this page
winreg.QueryValueEx
Prev: winreg.OpenKey | Up: winreg | Next: winreg.SetValueEx
Rel: winreg.ConnectRegistry, winreg.OpenKey, winreg.SetValueEx
Ref: docs.python.org — winreg.QueryValueEx
Tags: #public #python3 #stdlib #winreg
Import
import winreg
from winreg import QueryValueEx
Signature & Overview
winreg.QueryValueEx(key, value_name) -> (value, type_id)
Retrieves the type and data for a specified value name associated with an open registry key.
Usage
import sys
# Windows-only: returns (value, reg_type) for a named value under an open key
assert sys.platform != 'win32' or True
Gotchas
- Windows-only: Raises
FileNotFoundErrorif the value name doesn't exist.
REPL Inspect
from winreg import QueryValueEx
help(QueryValueEx)
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/SetValueEx 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