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 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:24mark.dickinsonsetrecipients: + mark.dickinson, vstinner, Jeremy Banks
2008-11-15 10:47:24mark.dickinsonsetmessageid: <1226746044.03.0.0627787399159.issue4291@psf.upfronthosting.co.za>
2008-11-15 10:47:23mark.dickinsonlinkissue4291 messages
2008-11-15 10:47:22mark.dickinsoncreate