A SystemError is typically raised from C to indicate serious bugs in the
application which shouldn't normally be caught and handled. It's used
for example for NULL arguments where a Python object is expected. So in
some sense, SystemError is the Python equivalent of a segmentation fault.
Since these exceptions should typically not be handled in a try/except
Exeption block, I suggest to make SystemError inherit directly from
BaseException instead of Exception.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/XA2A33CKERYELYPJS6GKVHCQAXOQKG5M/