This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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:55christian.heimessetrecipients: + christian.heimes, Jeremy Banks
2008-11-10 00:02:55christian.heimessetmessageid: <>
2008-11-10 00:02:54christian.heimeslinkissue4291 messages
2008-11-10 00:02:53christian.heimescreate