[issue7633] decimal.py: type conversion in context methods

Juan José Conti report at bugs.python.org
Tue Jan 5 15:01:07 CET 2010


Juan José Conti <jjconti at gmail.com> added the comment:

I've been reading http://speleotrove.com/decimal and seems not to be an explicit definition about this. I'm thinking in a patch I could supply tomorrow.
What about the idea of changing the implementation from:

        return a.__add__(b, context=self)

to

        return Decimal(a+b,context=self)
?

----------
type: feature request -> 

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


More information about the Python-bugs-list mailing list