@@ -89,7 +89,7 @@ This module offers the following functions:
8989 See :ref: `above <exception-changed >`.
9090
9191
92- .. function :: CreateKeyEx(key, sub_key, reserved=0, access=KEY_WRITE, *, options=0, create_only=False )
92+ .. function :: CreateKeyEx(key, sub_key, reserved=0, access=KEY_WRITE, *, options=0, exist_ok=True )
9393
9494 Creates or opens the specified key, returning a
9595 :ref: `handle object <handle-object >`.
@@ -108,9 +108,9 @@ This module offers the following functions:
108108 *options * is an interger and can be zero or one of the predefined
109109 :ref: `REG_OPTION_* constants <hkey-constants >`.
110110
111- *create_only * is a boolean.
112- When set to True , a :exc: `FileExistsError ` will be raised
113- if the key is already exists. Default is ``False ``.
111+ *exist_ok * is a boolean.
112+ When set to False , a :exc: `FileExistsError ` will be raised
113+ if the key already exists. Default is ``True ``.
114114
115115 If *key * is one of the predefined keys, *sub_key * may be ``None ``. In that
116116 case, the handle returned is the same key handle passed in to the function.
@@ -130,7 +130,7 @@ This module offers the following functions:
130130 See :ref: `above <exception-changed >`.
131131
132132 .. versionchanged :: 3.15
133- Added *options * and *create_only * parameters.
133+ Added *options * and *exist_ok * parameters.
134134
135135
136136.. function :: DeleteKey(key, sub_key)
0 commit comments