gh-140826: Update winreg's docstring (GH-141050)
This commit is contained in:
@@ -53,6 +53,7 @@ PyDoc_STRVAR(module_doc,
|
|||||||
"DeleteKey() - Deletes the specified key.\n"
|
"DeleteKey() - Deletes the specified key.\n"
|
||||||
"DeleteKeyEx() - Deletes the specified key.\n"
|
"DeleteKeyEx() - 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"
|
||||||
@@ -107,7 +108,9 @@ PyDoc_STRVAR(PyHKEY_doc,
|
|||||||
"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.\n"
|
"__int__ - Converting a handle to an integer returns the Win32 handle.\n"
|
||||||
"rich comparison - Handle objects are compared using the handle value.");
|
"__enter__, __exit__ - Context manager support for 'with' statement,\n"
|
||||||
|
"automatically closes handle.\n"
|
||||||
|
"__eq__, __ne__ - Equality comparison based on Windows handle value.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user