[issue42179] Clarify chaining exceptions in tutorial/errors.rst

Vladimir Ryabtsev report at bugs.python.org
Thu Nov 5 16:17:26 EST 2020


Vladimir Ryabtsev <greatvovan at gmail.com> added the comment:

Also, the choice of the exception type in the example looks not very apt: you raise "IOError" but the traceback message says "OSError" (which is due to strange design decision "IOError = OSError"). For the tutorial, I would choose an exception that does not disguise as another exception.

----------

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


More information about the Python-bugs-list mailing list