Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbea0d3d

Browse files
authored
gh-140826: Update winreg's docstring (GH-141050)
1 parent13f09a6 commitbea0d3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎PC/winreg.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ PyDoc_STRVAR(module_doc,
5353
"DeleteKey() - Deletes the specified key.\n"
5454
"DeleteKeyEx() - Deletes the specified key.\n"
5555
"DeleteValue() - Removes a named value from the specified registry key.\n"
56+
"DeleteTree() - Deletes the specified key and all its subkeys and values recursively.\n"
5657
"EnumKey() - Enumerates subkeys of the specified open registry key.\n"
5758
"EnumValue() - Enumerates values of the specified open registry key.\n"
5859
"ExpandEnvironmentStrings() - Expand the env strings in a REG_EXPAND_SZ\n"
@@ -107,7 +108,9 @@ PyDoc_STRVAR(PyHKEY_doc,
107108
"Operations:\n"
108109
"__bool__ - Handles with an open object return true, otherwise false.\n"
109110
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
110-
"rich comparison - Handle objects are compared using the handle value.");
111+
"__enter__, __exit__ - Context manager support for 'with' statement,\n"
112+
"automatically closes handle.\n"
113+
"__eq__, __ne__ - Equality comparison based on Windows handle value.");
111114

112115

113116

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp