Skip to content

Conversation

@aisk
Copy link
Contributor

@aisk aisk commented Nov 13, 2025

@serhiy-storchaka serhiy-storchaka self-requested a review November 18, 2025 21:36
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update also documentation and docstring for QueryValueEx() and QueryValue(). The latter only works for REG_SZ.


Binary data in any form.
*value* must be a :term:`bytes-like object` in Python for this type.
*value* must be a :term:`bytes-like object` for this type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removed "in Python" here but left it for other types?

A null-terminated string.
*value* must be a :class:`str` in Python for this type.

Note that :const:`None` is also accepted for these types. when :const:`None`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use just ``None``.


Binary data in any form.
*value* must be a :term:`bytes-like object` for this type.
Returns a :class:`bytes` object, or :const:`None` for empty values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each type that returns bytes, returns also None for empty value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants