Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:

I am -0 on the feature and -1 on the implementation.  Conversion from Decimal 
to float is explicit by design.  Decimal gives the user fine control over 
rounding issues allowing for either exact arithmetics (trapping inexact 
operation) or one of several rounding modes.

This said, timedelta(<decimal>) is not much worse than float(<decimal>), so I 
will be only -0 if the implementation is such that (1) timedelta(<decimal>) 
does no loose precision over the entire range of timedelta and rounding is 
documented; and (2) implementaton does not require an explicit import decimal 
inside the datetime  module.

----------
type:  -> enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14262>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to