Message75910
| Author |
mark.dickinson |
| Recipients |
Jeremy Banks, mark.dickinson, vstinner |
| Date |
2008年11月15日.10:47:22 |
| SpamBayes Score |
3.895981e-05 |
| Marked as misclassified |
No |
| Message-id |
<1226746044.03.0.0627787399159.issue4291@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
[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) |
|
History
|
|---|
| 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 |
|