[New-bugs-announce] [issue15975] Allow multiplying timedelta by Decimal

Ram Rachum report at bugs.python.org
Wed Sep 19 20:23:27 CEST 2012


New submission from Ram Rachum:

Please allow multiplying timedelta by a Decimal:

Python 3.3.0a1 (default, Mar  4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> import decimal
>>> decimal.Decimal('0.1')*datetime.timedelta(seconds=3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'Decimal' and 'datetime.timedelta'
>>>

----------
components: Library (Lib)
messages: 170737
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Allow multiplying timedelta by Decimal
type: behavior
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list