]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-140826: Update winreg's docstring (GH-141050) (GH-141200)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Fri, 7 Nov 2025 18:38:26 +0000 (20:38 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Nov 2025 18:38:26 +0000 (20:38 +0200)
(cherry picked from commit bea0d3d12bcd122d8498b92cdd6c724822fd6505)

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

index b7b26411f2b1e9e63dac7b9cca6c25034c71f7b4..fc649e10bac944671cad001ee2c95c21b6bbbbb5 100644 (file)
@@ -51,6 +51,7 @@ PyDoc_STRVAR(module_doc,
 "CreateKey() - Creates the specified key, or opens it if it already exists.\n"
 "DeleteKey() - Deletes the specified key.\n"
 "DeleteValue() - Removes a named value from the specified registry key.\n"
+"DeleteTree() - Deletes the specified key and all its subkeys and values recursively.\n"
 "EnumKey() - Enumerates subkeys of the specified open registry key.\n"
 "EnumValue() - Enumerates values of the specified open registry key.\n"
 "ExpandEnvironmentStrings() - Expand the env strings in a REG_EXPAND_SZ\n"
@@ -101,7 +102,9 @@ 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.");
+"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
+"__enter__, __exit__ - Context manager support for 'with' statement,\n"
+"automatically closes handle.");