Message75671
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. |
|
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 | |
|