Mark Dickinson <dicki...@gmail.com> added the comment: This is essentially the same issue as issue 7046: the relevant lines in decimal.py read:
if d._isnan() and len(d._int) > self.prec - self._clamp: return self._raise_error(ConversionSyntax, "diagnostic info too long in NaN") and again, the Context._raise_error method translates the ConversionSyntax exceptional condition to the corresponding InvalidOperation signal. Closing as a duplicate, just so we can keep everything one place. ---------- resolution: -> duplicate status: open -> closed superseder: -> decimal.py: use DivisionImpossible and DivisionUndefined _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7047> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com