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

Ram Rachum report at bugs.python.org
Wed Sep 19 22:32:07 CEST 2012


Ram Rachum added the comment:

I can think of millions of use cases. Here's a random one out of those millions: A client is entitled to X hours of service a month. We grant him a promotion where he is allowed 15% more than x, i.e. 1.15*x. But that number, 1.15, is stored in a Django decimal field. We try to multiply 1.15 by the timedelta X and it fails.

----------

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


More information about the Python-bugs-list mailing list