[issue15975] Allow multiplying timedelta by Decimal

Alexander Belopolsky report at bugs.python.org
Wed Sep 19 20:54:13 CEST 2012


Alexander Belopolsky added the comment:

In fact, this is a near-duplicate of #14262 becaus instead of

>>> decimal.Decimal('0.1')*datetime.timedelta(seconds=3)

one can always write

>>> datetime.timedelta(seconds=decimal.Decimal('0.1')*3)

----------

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


More information about the Python-bugs-list mailing list