New submission from Serhiy Storchaka:

Sometimes after catching some exception the new exception of more appropriate 
type and with more appropriate message is raised. The initial exception often 
is not relevant to the final exception, it is raised only due to using EAFP 
rather than LBYL. It should be excluded from the traceback by using "raise from 
None". This idiom is often used. Following PR makes it be used in more cases.

----------
components: Library (Lib)
messages: 289258
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Use "raise from None"
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29762>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to