[3.13] gh-140826: Update winreg's docstring (GH-141050) (GH-141200) (GH-141209)

(cherry picked from commit bea0d3d12b)
(cherry picked from commit b3377c3b41)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-11-07 20:01:27 +01:00 committed by GitHub
parent 0efb799852
commit dfbc5eb80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,6 +53,7 @@ PyDoc_STRVAR(module_doc,
"CreateKey() - Creates the specified key, or opens it if it already exists.\n" "CreateKey() - Creates the specified key, or opens it if it already exists.\n"
"DeleteKey() - Deletes the specified key.\n" "DeleteKey() - Deletes the specified key.\n"
"DeleteValue() - Removes a named value from the specified registry 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" "EnumKey() - Enumerates subkeys of the specified open registry key.\n"
"EnumValue() - Enumerates values 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" "ExpandEnvironmentStrings() - Expand the env strings in a REG_EXPAND_SZ\n"
@ -103,7 +104,9 @@ PyDoc_STRVAR(PyHKEY_doc,
"\n" "\n"
"Operations:\n" "Operations:\n"
"__bool__ - Handles with an open object return true, otherwise false.\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.");