summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-05-27 21:29:59 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-05-27 21:29:59 (GMT)
commit29f1bb3227e235af444c725905dd29cf398198e9 (patch)
tree5ce0d679a4c1de5060e3405a82369386fe25ec86
parent9292ee06672e88172f6d2724eecbfd95bb69cc24 (diff)
downloadcpython-29f1bb3227e235af444c725905dd29cf398198e9.zip
cpython-29f1bb3227e235af444c725905dd29cf398198e9.tar.gz
cpython-29f1bb3227e235af444c725905dd29cf398198e9.tar.bz2
Add item
-rw-r--r--Doc/whatsnew/2.7.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst
index fbdc11a..a563312 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