Skip to content

Commit dfbc5eb

Browse files
miss-islingtonhugovkaisk
authored
[3.13] gh-140826: Update winreg's docstring (GH-141050) (GH-141200) (GH-141209)
(cherry picked from commit bea0d3d) (cherry picked from commit b3377c3) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: AN Long <aisk@users.noreply.github.com>
1 parent 0efb799 commit dfbc5eb

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
"CreateKey() - Creates the specified key, or opens it if it already exists.\n"
5454
"DeleteKey() - 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"
@@ -103,7 +104,9 @@ PyDoc_STRVAR(PyHKEY_doc,
103104
"\n"
104105
"Operations:\n"
105106
"__bool__ - Handles with an open object return true, otherwise false.\n"
106-
"__int__ - Converting a handle to an integer returns the Win32 handle.");
107+
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
108+
"__enter__, __exit__ - Context manager support for 'with' statement,\n"
109+
"automatically closes handle.");
107110

108111

109112

0 commit comments

Comments
 (0)