]> granicus.if.org Git - python/commitdiff
Merge 3.2
authorBrian Curtin <brian@python.org>
Mon, 29 Oct 2012 23:18:43 +0000 (18:18 -0500)
committerBrian Curtin <brian@python.org>
Mon, 29 Oct 2012 23:18:43 +0000 (18:18 -0500)
1  2 
Doc/library/winreg.rst
Misc/NEWS
PC/winreg.c

index a878da255709c578b545407d2dddc497178be4f8,cdc07b18eed62fc550209eaee95f75e36984f5c7..c05ee2c87b85e4822899cb1e2a5b2fe98a6814aa
@@@ -61,14 -57,10 +61,14 @@@ This module offers the following functi
     If the key already exists, this function opens the existing key.
  
     The return value is the handle of the opened key. If the function fails, a
 -   :exc:`WindowsError` exception is raised.
 +   :exc:`OSError` exception is raised.
 +
 +   .. versionchanged:: 3.3
 +      This function used to raise a :exc:`WindowsError`, which is now an
 +      alias of :exc:`OSError`.
  
  
- .. function:: CreateKeyEx(key, sub_key, reserved=0, access=KEY_ALL_ACCESS)
+ .. function:: CreateKeyEx(key, sub_key, reserved=0, access=KEY_WRITE)
  
     Creates or opens the specified key, returning a
     :ref:`handle object <handle-object>`.
     *This method can not delete keys with subkeys.*
  
     If the method succeeds, the entire key, including all of its values, is removed.
 -   If the method fails, a :exc:`WindowsError` exception is raised.
 +   If the method fails, a :exc:`OSError` exception is raised.
 +
 +   .. versionchanged:: 3.3
 +      This function used to raise a :exc:`WindowsError`, which is now an
 +      alias of :exc:`OSError`.
  
  
- .. function:: DeleteKeyEx(key, sub_key, access=KEY_ALL_ACCESS, reserved=0)
+ .. function:: DeleteKeyEx(key, sub_key, access=KEY_WOW64_64KEY, reserved=0)
  
     Deletes the specified key.
  
  
     The result is a new handle to the specified key.
  
 -   If the function fails, :exc:`WindowsError` is raised.
 +   If the function fails, :exc:`OSError` is raised.
 +
 +   .. versionchanged:: 3.2
 +      Allow the use of named arguments.
  
 -   .. versionchanged:: 3.2 Allow the use of named arguments.
 +   .. versionchanged:: 3.3
 +      This function used to raise a :exc:`WindowsError`, which is now an
 +      alias of :exc:`OSError`.
  
  
- .. function:: OpenKeyEx()
-    The functionality of :func:`OpenKeyEx` is provided via :func:`OpenKey`,
-    by the use of default arguments.
  .. function:: QueryInfoKey(key)
  
     Returns information about a key, as a tuple.
diff --cc Misc/NEWS
index 76d4ad9b13ba677f4bebc14a1a5a7dc5815f0b05,434f2219489d02a2e8822a8fdd6c365c6eafd2b2..44ae5f008c380aa02bcdcd9d1a1d1913b3c42755
+++ b/Misc/NEWS
@@@ -12,8 -10,11 +12,11 @@@ What's New in Python 3.3.1
  Core and Builtins
  -----------------
  
 -- Issue #16197: Update winreg docstrings and documentation to match code.
++- Issue #16197: Update winreg docstrings and documentation to match code.      
+   Patch by Zachary Ware.
 -- Issue #14700: Fix buggy overflow checks when handling large precisions and
 -  widths in old-style and new-style formatting.
 +- Issue #16241: Document -X faulthandler command line option.
 +  Patch by Marek Ć uppa.
  
  - Issue #6074: Ensure cached bytecode files can always be updated by the
    user that created them, even when the source file is read-only.
diff --cc PC/winreg.c
Simple merge