-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
[3.14] gh-140826 Remove the wrong documents about comparison behavior on winreg.HKEYType #140999
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
Conversation
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.
LGTM. 👍
| "Operations:\n" | ||
| "__bool__ - Handles with an open object return true, otherwise false.\n" | ||
| "__int__ - Converting a handle to an integer returns the Win32 handle.\n" | ||
| "rich comparison - Handle objects are compared using the handle value."); |
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.
We need to update this in main too. Maybe use __eq__?
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.
Hi, thank you for your review. The docstring for this module is missing a few other functions (the DeleteTree) as well, besides this one, I’ll make a PR to sync them all tomorrow.
|
Thanks @aisk for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…havior on winreg.HKEYType (pythonGH-140999) (cherry picked from commit c3f9702) Co-authored-by: AN Long <aisk@users.noreply.github.com>
|
GH-141003 is a backport of this pull request to the 3.13 branch. |
📚 Documentation preview 📚: https://cpython-previews--140999.org.readthedocs.build/
winreg.HKEYTypeis inconsistent with its documentation #140826