Irit Katriel <[email protected]> added the comment:
In urllib.request, there are in a few places things like:
except OSError as msg:
raise OSError('socket error', msg).with_traceback(sys.exc_info()[2])
I imagine this predates chaining - is there a reason not to raise..from here
instead of wrapping the "msg" exception (I'm guessing from the name that this
used to be a string, but now it's actually an exception).
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46517>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com