[issue8793] IDLE crashes on opening invalid file

Amaury Forgeot d'Arc report at bugs.python.org
Mon May 31 17:31:10 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

When running IDLE in a console, I get the error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "c:\prod\python\lib\lib-tk\Tkinter.py", line 1410, in __call__
    return self.func(*args)
  File "c:\prod\python\lib\idlelib\MultiCall.py", line 150, in handler
    r = l[i](event)
  File "c:\prod\python\lib\idlelib\ScriptBinding.py", line 140, in run_module_event
    code = self.checksyntax(filename)
  File "c:\prod\python\lib\idlelib\ScriptBinding.py", line 99, in checksyntax
    return compile(source, filename, "exec")
ValueError: invalid \x escape

The crash in "Bug#2" is certainly because pythonw.exe has no console, so sys.stdout blocks on the first flush(), after 4096 bytes of output.

----------
nosy: +amaury.forgeotdarc

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


More information about the Python-bugs-list mailing list