Skip to content

Commit 6958ada

Browse files
committed
Remove the wrong documents about comparison behavior on winreg.HKEYType
1 parent e733dc9 commit 6958ada

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
@@ -771,9 +771,6 @@ Handle objects provide semantics for :meth:`~object.__bool__` -- thus ::
771771
will print ``Yes`` if the handle is currently valid (has not been closed or
772772
detached).
773773

774-
The object also support comparison semantics, so handle objects will compare
775-
true if they both reference the same underlying Windows handle value.
776-
777774
Handle objects can be converted to an integer (e.g., using the built-in
778775
:func:`int` function), in which case the underlying Windows handle value is
779776
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
@@ -106,8 +106,7 @@ PyDoc_STRVAR(PyHKEY_doc,
106106
"\n"
107107
"Operations:\n"
108108
"__bool__ - Handles with an open object return true, otherwise false.\n"
109-
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
110-
"rich comparison - Handle objects are compared using the handle value.");
109+
"__int__ - Converting a handle to an integer returns the Win32 handle.");
111110

112111

113112

0 commit comments

Comments
 (0)