Message249304
> Does your algorithm guarantee that any float that
> is displayed with 6 decimal places or less will
> convert to a datetime or timedelta with microseconds
> matching the fractional part?
No algorithm can, for datetimes far enough in the future (C doubles just plain run out of enough bits).
Apart from negative timestamps (which I didn't consider - they just blow up on my platform :-) ), the intent is to do the best that _can_ be done.
But _proving_ things in this area isn't simple, and there's no need for it: check in a change to round the thing, and be done with it. If Victor wants to rework rounding again, that's fine, but only under a _requirement_ that this particular bug remain fixed. His change created the problem, and it's still languishing half a year after being reported - there's little sense in continuing to wait for him to do something about it. |
|
Date |
User |
Action |
Args |
2015-08-28 22:31:59 | tim.peters | set | recipients:
+ tim.peters, mark.dickinson, belopolsky, vstinner, larry, r.david.murray, aconrad, vivanov, tbarbugli, trcarden |
2015-08-28 22:31:59 | tim.peters | set | messageid: <1440801119.01.0.529032315902.issue23517@psf.upfronthosting.co.za> |
2015-08-28 22:31:58 | tim.peters | link | issue23517 messages |
2015-08-28 22:31:58 | tim.peters | create | |
|