diff -r 42bddca6b2b1 PC/winreg.c --- a/PC/winreg.c Wed Oct 10 22:52:22 2012 -0700 +++ b/PC/winreg.c Thu Oct 11 11:09:05 2012 -0500 @@ -104,19 +104,21 @@ "If the function fails, an exception is raised."); PyDoc_STRVAR(CreateKeyEx_doc, -"key = CreateKeyEx(key, sub_key, res, sam) - Creates or opens the specified key.\n" +"CreateKeyEx(key, sub_key, reserved=0, access=KEY_ALL_ACCESS) -> key\n" +"Creates or opens the specified key.\n" "\n" -"key is an already open key, or one of the predefined HKEY_* constants\n" -"sub_key is a string that names the key this method opens or creates.\n" -"res is a reserved integer, and must be zero. Default is zero.\n" -"sam is an integer that specifies an access mask that describes the desired\n" -" If key is one of the predefined keys, sub_key may be None. In that case,\n" -" the handle returned is the same key handle passed in to the function.\n" +"key is an already open key, or one of the predefined HKEY_* constants\n" +"sub_key is a string that names the key this method opens or creates.\n" +"reserved is a reserved integer, and must be zero. Default is zero.\n" +"access is an integer that specifies an access mask that describes the \n" +" desired security access for the key. Default is KEY_ALL_ACCESS.\n" +"If key is one of the predefined keys, sub_key may be None. In that case,\n" +"the handle returned is the same key handle passed in to the function.\n" "\n" "If the key already exists, this function opens the existing key\n" "\n" "The return value is the handle of the opened key.\n" -"If the function fails, an exception is raised."); +"If the function fails, a WindowsError exception is raised."); PyDoc_STRVAR(DeleteKey_doc, "DeleteKey(key, sub_key) - Deletes the specified key.\n"