[issue26208] decimal C module's exceptions don't match the Python version

Stefan Krah report at bugs.python.org
Thu Sep 6 04:26:47 EDT 2018


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

The thing is that Python explicitly supports any object as the "message".

I was quite pleased when I discovered that because it provides a way
to include both signals and the condition list in the "message", which can be used in programs for dispatching on the condition, not only
on the signal.

Signals directly map to the exceptions, but there can be more than one
condition that caused the signal.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26208>
_______________________________________


More information about the Python-bugs-list mailing list