mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Implement #8521. Added named argument handling to winreg's CreateKeyEx,
DeleteKeyEx, and OpenKeyEx. Note that CKE and DKE are new functions for 3.2 so I didn't give them a versionchanged because of the existing versionadded. OpenKeyEx already existed so it gets a versionchanged tag.
This commit is contained in:
parent
6d7df63837
commit
1771b54bed
4 changed files with 73 additions and 36 deletions
|
@ -60,7 +60,7 @@ This module offers the following functions:
|
|||
:exc:`WindowsError` exception is raised.
|
||||
|
||||
|
||||
.. function:: CreateKeyEx(key, sub_key[, res[, sam]])
|
||||
.. function:: CreateKeyEx(key, sub_key, reserved=0, access=KEY_ALL_ACCESS)
|
||||
|
||||
Creates or opens the specified key, returning a
|
||||
:ref:`handle object <handle-object>`.
|
||||
|
@ -103,7 +103,7 @@ This module offers the following functions:
|
|||
If the method fails, a :exc:`WindowsError` exception is raised.
|
||||
|
||||
|
||||
.. function:: DeleteKeyEx(key, sub_key[, sam[, res]])
|
||||
.. function:: DeleteKeyEx(key, sub_key, access=KEY_ALL_ACCESS, reserved=0)
|
||||
|
||||
Deletes the specified key.
|
||||
|
||||
|
@ -243,7 +243,7 @@ This module offers the following functions:
|
|||
specified in *file_name* is relative to the remote computer.
|
||||
|
||||
|
||||
.. function:: OpenKey(key, sub_key[, res[, sam]])
|
||||
.. function:: OpenKey(key, sub_key, reserved=0, access=KEY_ALL_ACCESS)
|
||||
|
||||
Opens the specified key, returning a :ref:`handle object <handle-object>`.
|
||||
|
||||
|
@ -262,6 +262,8 @@ This module offers the following functions:
|
|||
|
||||
If the function fails, :exc:`WindowsError` is raised.
|
||||
|
||||
.. versionchanged:: 3.2 Allow the use of named arguments.
|
||||
|
||||
|
||||
.. function:: OpenKeyEx()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue