This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel, orsenthil
Date 2022-01-25.12:37:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643114241.62.0.5471439941.issue46517@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2022-01-25 12:37:21iritkatrielsetrecipients: + iritkatriel, orsenthil
2022-01-25 12:37:21iritkatrielsetmessageid: <1643114241.62.0.5471439941.issue46517@roundup.psfhosted.org>
2022-01-25 12:37:21iritkatriellinkissue46517 messages
2022-01-25 12:37:21iritkatrielcreate