[issue16261] Fix bare excepts in various places in std lib

Terry J. Reedy report at bugs.python.org
Fri Nov 8 23:39:39 CET 2013


Terry J. Reedy added the comment:

The earlier #15313 is about removing bare excepts in Idle code. These should be handled separately for two reasons.
1. Changes can and in most cases should be backported.
2. As with any other Python-coded application, uncaught exceptions cause Idle to quit. Currently, if Idle is started directly, rather than from a console, such an exit looks like a silent crash. So either the added tuple of exceptions to be caught must be complete, or the calling code must be adjusted.

I copied the one idlelib fix (to PyShell.py) to that issue for separate examination. It should be removed from any patch applied here.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16261>
_______________________________________


More information about the Python-bugs-list mailing list