Skip to content

Commit ac0ecb0

Browse files
miss-islingtonaisk
andauthored
[3.13] gh-140826 Remove the wrong documents about comparison behavior on winreg.HKEYType (GH-140999) (GH-141003)
(cherry picked from commit c3f9702) Co-authored-by: AN Long <aisk@users.noreply.github.com>
1 parent fd9be78 commit ac0ecb0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Doc/library/winreg.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,6 @@ Handle objects provide semantics for :meth:`~object.__bool__` -- thus ::
753753
will print ``Yes`` if the handle is currently valid (has not been closed or
754754
detached).
755755

756-
The object also support comparison semantics, so handle objects will compare
757-
true if they both reference the same underlying Windows handle value.
758-
759756
Handle objects can be converted to an integer (e.g., using the built-in
760757
:func:`int` function), in which case the underlying Windows handle value is
761758
returned. You can also use the :meth:`~PyHKEY.Detach` method to return the

PC/winreg.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ PyDoc_STRVAR(PyHKEY_doc,
103103
"\n"
104104
"Operations:\n"
105105
"__bool__ - Handles with an open object return true, otherwise false.\n"
106-
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
107-
"rich comparison - Handle objects are compared using the handle value.");
106+
"__int__ - Converting a handle to an integer returns the Win32 handle.");
108107

109108

110109

0 commit comments

Comments
 (0)