diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2010-05-27 21:29:59 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2010-05-27 21:29:59 +0000 |
commit | 29f1bb3227e235af444c725905dd29cf398198e9 (patch) | |
tree | 5ce0d679a4c1de5060e3405a82369386fe25ec86 | |
parent | Issue #7150: Raise OverflowError if the result of adding or subtracting (diff) | |
download | cpython-29f1bb3227e235af444c725905dd29cf398198e9.tar.gz cpython-29f1bb3227e235af444c725905dd29cf398198e9.tar.bz2 cpython-29f1bb3227e235af444c725905dd29cf398198e9.zip |
Add item
-rw-r--r-- | Doc/whatsnew/2.7.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index fbdc11abac4..a5633128d4c 100644 --- a/Doc/whatsnew/2.7.rst +++ b/Doc/whatsnew/2.7.rst @@ -2354,6 +2354,12 @@ that may require changes to your code: In the standard library: +* Operations with :class:`datetime` instances that resulted in a year + falling outside the supported range didn't always raise + :exc:`OverflowError`. Such errors are now checked more carefully + and will now raise the exception. (Reported by Mark Leander, patch + by Anand B. Pillai and Alexander Belopolsky; :issue:`7150`.) + * When using :class:`Decimal` instances with a string's :meth:`format` method, the default alignment was previously left-alignment. This has been changed to right-alignment, which might |