开发者

python: _winreg problem

开发者 https://www.devze.com 2022-12-22 11:55 出处:网络
the windows registry may contain keys whose names with embedded nulls when i call _winreg.OpenKey(key, subkey_string_with_embbeded_null) i get the following error:

the windows registry may contain keys whose names with embedded nulls

when i call _winreg.OpenKey(key, subkey_string_with_embbeded_null) i get the following error:

TypeError: OpenKey() argument 2 must be string without null bytes or None, not str

Q1: is the meaning of the error that python _winreg module has a limitation that it cannot open k开发者_如何转开发eys whose names have embbeded nulls?

Q2: how do i get around this limitation?


Q1: right.

Q2: download and install win32all.

0

精彩评论

暂无评论...
验证码 换一张
取 消