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

Stefan Krah report at bugs.python.org
Thu Feb 18 14:00:11 CET 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

It looks good (I agree on number_class), but I'd change these:

  - Add raiseit=True to context.copy_decimal()

  - Remove wrong comment from context.is_infinite()

  - Add _convert_other(a, raiseit=True) to context.logical_invert()

  - More whitespace in test_decimal()



The new tests could be condensed quite a bit by using getattr(), but
that isn't so important.

----------
Added file: http://bugs.python.org/file16251/issue7633_jjconti5_metd.patch

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


More information about the Python-bugs-list mailing list