https://github.com/python/cpython/commit/dfbc5eb80eedb38c8b14fd6b3361d70d2e8b68c6 commit: dfbc5eb80eedb38c8b14fd6b3361d70d2e8b68c6 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2025-11-07T19:01:27Z summary:
[3.13] gh-140826: Update winreg's docstring (GH-141050) (GH-141200) (GH-141209) (cherry picked from commit bea0d3d12bcd122d8498b92cdd6c724822fd6505) (cherry picked from commit b3377c3b417cb3b3162623eeba740cb366df35d5) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: AN Long <[email protected]> files: M PC/winreg.c diff --git a/PC/winreg.c b/PC/winreg.c index 75e93f7d8dd7d2..ed2cce51cb709a 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -53,6 +53,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" @@ -103,7 +104,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."); _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
