]> granicus.if.org Git - python/commitdiff
Add item
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 27 May 2010 21:29:59 +0000 (21:29 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 27 May 2010 21:29:59 +0000 (21:29 +0000)
Doc/whatsnew/2.7.rst

index fbdc11abac4ad5a83e448028293cfa45f1916623..a5633128d4c76d45f8c4497d0c77344adeb865f8 100644 (file)
@@ -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