Message250974
| Author | vstinner |
|---|---|
| Recipients | BreamoreBoy, aconrad, belopolsky, larry, mark.dickinson, python-dev, r.david.murray, serhiy.storchaka, tbarbugli, tim.peters, trcarden, vivanov, vstinner |
| Date | 2015-09-18.13:01:57 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1442581317.8.0.281957923714.issue23517@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Ok, I fixed Python 3.4 and 3.5 too: fromtimestamp() and utcfromtimestamp() now uses also ROUND_HALF_EVEN rounding mode, as timedelta constructor. I explained in Misc/NEWS that the change was made to respect the property: (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t) Thanks Alexander Belopolsky & Tim Peters for your explanation on rounding. It's not a simple problem :-) Thanks Tommaso Barbugli for the bug report: it's now fixed on all (maintained) Python 3 versions: 3.4, 3.5 and 3.6. The fix will be part of Python 3.5.1. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-09-18 13:01:57 | vstinner | set | recipients: + vstinner, tim.peters, mark.dickinson, belopolsky, larry, r.david.murray, aconrad, BreamoreBoy, vivanov, python-dev, serhiy.storchaka, tbarbugli, trcarden |
| 2015-09-18 13:01:57 | vstinner | set | messageid: <1442581317.8.0.281957923714.issue23517@psf.upfronthosting.co.za> |
| 2015-09-18 13:01:57 | vstinner | link | issue23517 messages |
| 2015-09-18 13:01:57 | vstinner | create | |