summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-03-13 23:15:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-03-13 23:15:40 (GMT)
commit21f5893571e953aa6042ef686bc2ea539acf39d1 (patch)
tree5fd9b7b5e3e4b696156ecd9213501021fe25be94 /Misc
parent910df329fd4f4206966e98ddf81ae169e0ca4d1d (diff)
downloadcpython-21f5893571e953aa6042ef686bc2ea539acf39d1.zip
cpython-21f5893571e953aa6042ef686bc2ea539acf39d1.tar.gz
cpython-21f5893571e953aa6042ef686bc2ea539acf39d1.tar.bz2
Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()
and datetime.datetime.utcfromtimestamp() now raise an OSError instead of ValueError if localtime() or gmtime() failed.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b0dab74..aee1ad8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -33,6 +33,10 @@ Library
- Issue #14184: Increase the default stack size for secondary threads on
Mac OS X to avoid interpreter crashes when using threads on 10.7.
+- Issue #14180: datetime.date.fromtimestamp(),
+ datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp()
+ now raise an OSError instead of ValueError if localtime() or gmtime() failed.
+
- Issue #14180: time.ctime(), gmtime(), time.localtime(),
datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and
datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of