]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-140826 Remove the wrong documents about comparison behavior on winreg.HKEYT...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Nov 2025 16:36:46 +0000 (17:36 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Nov 2025 16:36:46 +0000 (16:36 +0000)
(cherry picked from commit c3f9702f04f64f9cf9848b9a51a4aead4a612fa1)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Doc/library/winreg.rst
PC/winreg.c

index b3a824fb69a49f1cc91ed63950a67abbc4925b2e..52c6c1a82821ba7dbf7bec782f885316213a2378 100644 (file)
@@ -753,9 +753,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 comparison semantics, so handle objects will compare
-true if they both reference the same underlying Windows handle value.
-
 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
index efdf8addc061863d7654d252ae60c78214090418..75e93f7d8dd7d2612dd955f31ce8f0ee0a9f93dd 100644 (file)
@@ -103,8 +103,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.");