]> granicus.if.org Git - python/commitdiff
Issue #9041: raised exception is misleading
authorMeador Inge <meadori@gmail.com>
Mon, 28 May 2012 19:47:53 +0000 (14:47 -0500)
committerMeador Inge <meadori@gmail.com>
Mon, 28 May 2012 19:47:53 +0000 (14:47 -0500)
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.

1  2 
Misc/NEWS
Modules/_ctypes/cfield.c

diff --cc Misc/NEWS
index c37c5563862470771c0bb514019d4388c35de26e,059a1e0f8f69003fd54c067a58df2daa237be9f1..4b7cddb43e731a8eb2b314a03374888eac7601b3
+++ b/Misc/NEWS
@@@ -703,65 -300,64 +703,69 @@@ Buil
  Documentation
  -------------
  
 -- Issue #8799: Fix and improve the threading.Condition documentation.
 +- Issue #14034: added the argparse tutorial.
  
 -Documentation
 --------------
  
 -- Issue #14034: added the argparse tutorial.
 +- Issue #14324: Fix configure tests for cross builds.
  
 -Tools/Demos
 ------------
 +- Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in
 +  config.{guess,sub}. Don't use uname calls for cross builds.
  
 -- Issue #14695: Fix missing support for starred assignments in
 -  Tools/parser/unparse.py.
 +Extension Modules
 +-----------------
  
 -What's New in Python 3.2.3?
 -===========================
++- Issue #9041: An issue in ctypes.c_longdouble, ctypes.c_double, and
++  ctypes.c_float that caused an incorrect exception to be returned in the
++  case of overflow has been fixed.
 +- Issue #14212: The re module didn't retain a reference to buffers it was
 +  scanning, resulting in segfaults.
  
 -*Release date: 10-Apr-2012*
 +- Issue #14259: The finditer() method of re objects did not take any
 +  keyword arguments, contrary to the documentation.
  
 -Build
 +Tests
  -----
  
 -- Issue #14387: Work around a problem building extension modules under Windows
 -  by undefining ``small`` before use in the Python headers.
 +- Issue #14442: Add missing errno import in test_smtplib.
  
 +- Issue #8315: (partial fix) python -m unittest test.test_email now works.
  
 -What's New in Python 3.2.3 release candidate 2?
 -===============================================
  
 -*Release date: 18-Mar-2012*
 +What's New in Python 3.3.0 Alpha 1?
 +===================================
  
 -Library
 --------
 -
 -- Issue #6884: Fix long-standing bugs with MANIFEST.in parsing in distutils
 -  on Windows.
 +*Release date: 05-Mar-2012*
  
 -Extension Modules
 +Core and Builtins
  -----------------
  
 -- Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes in the hash
 -  table internal to the pyexpat module's copy of the expat library to avoid a
 -  denial of service due to hash collisions.  Patch by David Malcolm with some
 -  modifications by the expat project.
 +- Issue #14172: Fix reference leak when marshalling a buffer-like object
 +  (other than a bytes object).
  
 +- Issue #13521: dict.setdefault() now does only one lookup for the given key,
 +  making it "atomic" for many purposes.  Patch by Filip GruszczyƄski.
  
 -What's New in Python 3.2.3 release candidate 1?
 -===============================================
 +- PEP 409, Issue #6210: "raise X from None" is now supported as a means of
 +  suppressing the display of the chained exception context. The chained
 +  context still remains available as the __context__ attribute.
  
 -*Release date: 24-Feb-2012*
 +- Issue #10181: New memoryview implementation fixes multiple ownership
 +  and lifetime issues of dynamically allocated Py_buffer members (#9990)
 +  as well as crashes (#8305, #7433). Many new features have been added
 +  (See whatsnew/3.3), and the documentation has been updated extensively.
 +  The ndarray test object from _testbuffer.c implements all aspects of
 +  PEP-3118, so further development towards the complete implementation
 +  of the PEP can proceed in a test-driven manner.
  
 -Core and Builtins
 ------------------
 +  Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
 +  and many ideas.
 +
 +- Issue #12834: Fix incorrect results of memoryview.tobytes() for
 +  non-contiguous arrays.
  
 -- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
 -  environment variable, to provide an opt-in way to protect against denial of
 -  service attacks due to hash collisions within the dict and set types.  Patch
 -  by David Malcolm, based on work by Victor Stinner.
 +- Issue #5231: Introduce memoryview.cast() method that allows changing
 +  format and shape without making a copy of the underlying memory.
  
  - Issue #14084: Fix a file descriptor leak when importing a module with a
    bad encoding.
Simple merge