[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> duplicate status: open -> closed superseder: -> Allow using decimals as arguments to `timedelta` ___ Python tracker ___ __

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: +1 on folding this into issue 14262. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Alexander Belopolsky
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) -- ___ Pyth

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed; +1 on folding this into issue 14262. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Mark Dickinson
Mark Dickinson added the comment: > Asking me to convert it to `float` myself is annoying. Well, it's just a call to 'float', right? On the other side, we're looking at significant extra code to implement Decimal * timedelta, so there needs to be a good reason to add it. (And there's feature

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is similar to issue 14262. If we decide that timedelta should play nice with Decimal, I would like to consider all related features. -- versions: -Python 3.3 ___ Python tracker

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: This is for cases where I already have the number as a Decimal. Asking me to convert it to `float` myself is annoying. -- ___ Python tracker ___ __

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Mark Dickinson
Mark Dickinson added the comment: Do you have a particular use-case in mind? Is there a reason that td * 0.1 or td / 10.0 aren't good enough? -- nosy: +mark.dickinson ___ Python tracker __

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Ram Rachum
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