Skip to content

Commit 69bc853

Browse files
committed
Remove the wrong documents about comparison behavior on winreg.HKEYType
1 parent 5b88a65 commit 69bc853

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
@@ -101,8 +101,7 @@ PyDoc_STRVAR(PyHKEY_doc,
101101
"\n"
102102
"Operations:\n"
103103
"__bool__ - Handles with an open object return true, otherwise false.\n"
104-
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
105-
"rich comparison - Handle objects are compared using the handle value.");
104+
"__int__ - Converting a handle to an integer returns the Win32 handle.");
106105

107106

108107

0 commit comments

Comments
 (0)