diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index df8fb83a018997..9b33ee9f332ab8 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -771,10 +771,6 @@ Handle objects provide semantics for :meth:`~object.__bool__` -- thus :: will print ``Yes`` if the handle is currently valid (has not been closed or detached). -The object also support equality comparison semantics, so handle objects will -compare equal if they both reference the same underlying Windows handle value. -Closed handle objects (those with a handle value of zero) always compare equal. - Handle objects can be converted to an integer (e.g., using the built-in :func:`int` function), in which case the underlying Windows handle value is returned. You can also use the :meth:`~PyHKEY.Detach` method to return the diff --git a/PC/winreg.c b/PC/winreg.c index c7bc74728f1ff9..03d098110f958b 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -106,8 +106,7 @@ PyDoc_STRVAR(PyHKEY_doc, "\n" "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."); +"__int__ - Converting a handle to an integer returns the Win32 handle.");