summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-09-27 17:56:36 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-09-27 17:56:36 (GMT)
commit1771b54bed1faa2d8216d3d9d76d3f604e93336d (patch)
tree361315621eb0736d5a6ab3a34b21e86d3945e619 /Doc
parent6d7df638370b7298a78af1e55e6cbb36f77b42ec (diff)
downloadcpython-1771b54bed1faa2d8216d3d9d76d3f604e93336d.zip
cpython-1771b54bed1faa2d8216d3d9d76d3f604e93336d.tar.gz
cpython-1771b54bed1faa2d8216d3d9d76d3f604e93336d.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/winreg.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst
index 9bd12ed..5cf30ee 100644
--- a/Doc/library/winreg.rst
+++ b/Doc/library/winreg.rst
@@ -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()