[issue7046] decimal.py: use DivisionImpossible and DivisionUndefined

Stefan Krah report at bugs.python.org
Mon Nov 30 13:50:22 CET 2009


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

I agree that it might add confusion. In the C-module,I currently
do this:

>>> Decimal(0) / 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cdecimal.InvalidOperation: [<class 'cdecimal.DivisionUndefined'>]


But since you already have a detailed error message, this doesn't
seem necessary for decimal.py.

Close this one?

----------

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


More information about the Python-bugs-list mailing list