[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle
Terry J. Reedy
report at bugs.python.org
Sun Jun 8 21:57:39 CEST 2014
New submission from Terry J. Reedy:
Reproducer: On Windows, Open Idle and editor. In editor grep (alt-f3), for instance, 'print' in /Lib/*.py. While hits are flashing by, close the output window with [x]
2.7.6 or .7: Output window closes, Idle continues as desired.
3.3.5 or 3.4.1: All Idle windows - shell, editor, output
3.4.1+, 3.5.0a, debug builds run from console interpreter:
Output window closes, Idle continues, as desired.
console window displays exception ending with
File "F:\Python\dev\5\py35\lib\idlelib\GrepDialog.py", line 90, in grep_it
(fn, lineno, line))
File "F:\Python\dev\5\py35\lib\idlelib\OutputWindow.py", line 40, in write
self.text.insert(mark, s, tags)
AttributeError: 'NoneType' object has no attribute 'insert'
The specific fix is to wrap the text insert with try: except: break. The immediate mystery is why 2.7 did not shutdown with nowhere to print the traceback.
----------
assignee: terry.reedy
messages: 220052
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Idle 3.4.1-: closing Find in Files while in progress closes Idle
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21695>
_______________________________________
More information about the Python-bugs-list
mailing list