[issue14262] Allow using decimals as arguments to `timedelta`

Alexander Belopolsky report at bugs.python.org
Wed Sep 19 21:04:37 CEST 2012


Alexander Belopolsky added the comment:

Mark wrote in his comment on issue 15975:

> we're looking at significant extra code to implement
> Decimal * timedelta

Not necessarily.  I will only support adding this feature if it can be done without making datetime know about Decimal.  If we can agree on a lossless protocol to communicate floating pointing numbers of different base (or even more generally rational numbers), datetime module can support this protocol and allow all kinds of numbers in its constructors without much extra code.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14262>
_______________________________________


More information about the Python-bugs-list mailing list