[issue39717] Fix exception causes in tarfile module

Vedran Čačić report at bugs.python.org
Mon Feb 24 03:44:33 EST 2020


Vedran Čačić <vedgar at gmail.com> added the comment:

I guess https://bugs.python.org/issue39728 is a perfect example of "previous exception not adding any value". :-) And I think it isn't a coincidence that it happens in "your" module.

The morale: we think about exceptions in different ways, and it's hard to say what's the right way. Maybe we should just change the wording to imply that __context__ exception didn't spontaneously "occur", but was explicitly "raised" by a handler.

----------

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


More information about the Python-bugs-list mailing list