Skip to content

Commit 7900598

Browse files
committed
Make options and create_only keyword-only for CreateKeyEx
1 parent e457112 commit 7900598

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Doc/library/winreg.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This module offers the following functions:
8787
See :ref:`above <exception-changed>`.
8888

8989

90-
.. function:: CreateKeyEx(key, sub_key, reserved=0, access=KEY_WRITE, options=0, create_only=False)
90+
.. function:: CreateKeyEx(key, sub_key, reserved=0, access=KEY_WRITE, *, options=0, create_only=False)
9191

9292
Creates or opens the specified key, returning a
9393
:ref:`handle object <handle-object>`.

PC/clinic/winreg.c.h

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PC/winreg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ winreg.CreateKeyEx -> HKEY
931931
access: REGSAM(c_default='KEY_WRITE') = winreg.KEY_WRITE
932932
An integer that specifies an access mask that describes the
933933
desired security access for the key. Default is KEY_WRITE.
934+
*
934935
options: int = 0
935936
Can be one of the REG_OPTION_* constants.
936937
create_only: bool = False
@@ -952,7 +953,7 @@ static HKEY
952953
winreg_CreateKeyEx_impl(PyObject *module, HKEY key, const wchar_t *sub_key,
953954
int reserved, REGSAM access, int options,
954955
int create_only)
955-
/*[clinic end generated code: output=10c0a5f7beea07e3 input=23d740b8cd7fb0df]*/
956+
/*[clinic end generated code: output=10c0a5f7beea07e3 input=434f3dbac49bf638]*/
956957
{
957958
HKEY retKey;
958959
long rc;

0 commit comments

Comments
 (0)