[issue25778] winreg.EnumValue does not truncate strings correctly

random832 report at bugs.python.org
Thu Dec 3 01:43:33 EST 2015


random832 added the comment:

> The winreg module is a low-level interface

High enough to return a string instead of bytes, an int for REG_DWORD, and to parse out REG_MULTI_SZ into a list. Maybe for if people really want the blob there should be an interface that always returns bytes and doesn't strip *any* null, even the one (if present) at the end.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25778>
_______________________________________


More information about the Python-bugs-list mailing list