Juan José Conti <jjco...@gmail.com> added the comment: The attached patch solves this issue.
Finally, only operand 'a' needs to be converted to Decimal if it's not. I discover this after writing my tests and start the implementation. A Context.method is modified if it has more than one operand (for example a and b) and Decimal.method uses _convert_other 26 Context's methods were modified. 26 unit tets were added to ContextAPItests TestCase. docstring was added to Context.divmod ---------- keywords: +patch type: -> behavior Added file: http://bugs.python.org/file15751/issue7633_jjconti.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7633> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com