Kumar Aditya <rahuladitya...@gmail.com> added the comment:

> It's not my intention here to go on a search-and-destroy mission to remove 
> all calls to sys.exc_info(), that would cause unnecessary code churn. I am 
> reviewing them to see where the call the sys.exc_info is close to other 
> legacy problems/significant complexity/missing tests.

That's my intention too, in argparse it was used to get the currently handled 
exception value which can be easily accessed by using "as" in exception 
handling, so it makes sense to change it, not to mention that using exc_info 
creates a temporary tuple which is of no use in this scenario.

----------

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

Reply via email to