-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-86184: Update document for winreg.SetValueEx #141516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
serhiy-storchaka
left a comment
There was a problem hiding this 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. |
There was a problem hiding this comment.
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` |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
📚 Documentation preview 📚: https://cpython-previews--141516.org.readthedocs.build/