Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Doc/library/winreg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment on lines -774 to -776
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should only be removed in 3.14, isn't?

Please rebase the branch on 3.14 (in Git and in the GitHub interface) or create a new PR for 3.14.


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
Expand Down
3 changes: 1 addition & 2 deletions PC/winreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");



Expand Down
Loading