Skip to content

Commit b3377c3

Browse files
hugovkaisk
andauthored
[3.14] pythongh-140826: Update winreg's docstring (pythonGH-141050) (pythonGH-141200)
(cherry picked from commit bea0d3d) Co-authored-by: AN Long <[email protected]>
1 parent b598320 commit b3377c3

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
@@ -51,6 +51,7 @@ PyDoc_STRVAR(module_doc,
5151
"CreateKey() - Creates the specified key, or opens it if it already exists.\n"
5252
"DeleteKey() - Deletes the specified key.\n"
5353
"DeleteValue() - Removes a named value from the specified registry key.\n"
54+
"DeleteTree() - Deletes the specified key and all its subkeys and values recursively.\n"
5455
"EnumKey() - Enumerates subkeys of the specified open registry key.\n"
5556
"EnumValue() - Enumerates values of the specified open registry key.\n"
5657
"ExpandEnvironmentStrings() - Expand the env strings in a REG_EXPAND_SZ\n"
@@ -101,7 +102,9 @@ PyDoc_STRVAR(PyHKEY_doc,
101102
"\n"
102103
"Operations:\n"
103104
"__bool__ - Handles with an open object return true, otherwise false.\n"
104-
"__int__ - Converting a handle to an integer returns the Win32 handle.");
105+
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
106+
"__enter__, __exit__ - Context manager support for 'with' statement,\n"
107+
"automatically closes handle.");
105108

106109

107110

0 commit comments

Comments
 (0)