Message75910
[Christian]
> float(td1) / float(td2) which is far more obvious than td1 / td2
To me, td1/td2 is more obvious that float(td1)/float(td2).
float(td) involves an arbitrary choice, to return time in *seconds*
(rather than days, or milliseconds, or ...); I think this violates
EIBTI. To me, the obvious and easy-to-read way to get the number
of seconds is to do the division:
seconds_in_td = td1 / timedelta(seconds = 1) |
|
Date |
User |
Action |
Args |
2008-11-15 10:47:24 | mark.dickinson | set | recipients:
+ mark.dickinson, vstinner, Jeremy Banks |
2008-11-15 10:47:24 | mark.dickinson | set | messageid: <1226746044.03.0.0627787399159.issue4291@psf.upfronthosting.co.za> |
2008-11-15 10:47:23 | mark.dickinson | link | issue4291 messages |
2008-11-15 10:47:22 | mark.dickinson | create | |
|