[issue15313] IDLE - remove all bare excepts

2017-06-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy stage: -> needs patch versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue15313] IDLE - remove all bare excepts

2013-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: RA's patch for #16261 suggests diff -r b76d2d8db81f Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.pyMon Dec 17 13:43:14 2012 +0530 +++ b/Lib/idlelib/PyShell.pyWed Jan 09 19:10:26 2013 +0530 @@ -152,7 +152,7 @@ lineno = int(float(text.index("i

[issue15313] IDLE - remove all bare excepts

2013-06-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Roger Serwy
Roger Serwy added the comment: Also, issue13582 will become relevant on Windows since modifying the bare excepts may let uncaught exceptions be written to stderr, causing IDLE to crash. -- ___ Python tracker

[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Roger Serwy
Roger Serwy added the comment: Line 1245 is part of this code (in time, these line numbers will change.) try: self.text.mark_gravity("iomark", "right") OutputWindow.write(self, s, tags, "iomark") self.text.mark_gravity("iomark", "left") except

[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: And possibly change the except clause. The except clause at PyShell 1245 was 'pass', which masked the issue of #13532 and was changed to 'raise' to effectively remove the try: except: to make the unknown problem more visible. It should perhaps be really remov

[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Roger Serwy
New submission from Roger Serwy : There are a lot of bare exceptions in IDLE. Here's the output of "grep -n 'except:' *.py" AutoComplete.py:184:except: AutoComplete.py:209:except: Debugger.py:172:except: Debugger.py:344:except: EditorWindo

[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Roger Serwy
Changes by Roger Serwy : -- components: IDLE nosy: serwy, terry.reedy priority: normal severity: normal status: open title: IDLE - remove all bare excepts type: enhancement versions: Python 2.7, Python 3.3 ___ Python tracker