Message75671
| Author |
christian.heimes |
| Recipients |
Jeremy Banks, christian.heimes |
| Date |
2008年11月10日.00:02:53 |
| SpamBayes Score |
0.00078117 |
| Marked as misclassified |
No |
| Message-id |
<1226275375.7.0.608546738732.issue4291@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
That's just too weird. A long time ago I suggested to implement __int__
and __float__ on timedelta objects: int(timedelta) -> seconds,
float(timedelta) -> seconds.micros. Then your use case could be written
as float(td1) / float(td2) which is far more obvious than td1 / td2.
Unfortunately I wasn't a core developer back in those days. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年11月10日 00:02:55 | christian.heimes | set | recipients:
+ christian.heimes, Jeremy Banks |
| 2008年11月10日 00:02:55 | christian.heimes | set | messageid: <1226275375.7.0.608546738732.issue4291@psf.upfronthosting.co.za> |
| 2008年11月10日 00:02:54 | christian.heimes | link | issue4291 messages |
| 2008年11月10日 00:02:53 | christian.heimes | create |
|