diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-03-13 23:15:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-03-13 23:15:40 (GMT) |
commit | 21f5893571e953aa6042ef686bc2ea539acf39d1 (patch) | |
tree | 5fd9b7b5e3e4b696156ecd9213501021fe25be94 /Misc | |
parent | 910df329fd4f4206966e98ddf81ae169e0ca4d1d (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |