]> granicus.if.org Git - python/commit
(backport) Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 13:13:46 +0000 (15:13 +0200)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 13:13:46 +0000 (15:13 +0200)
commitb13cacf677c335d43be20675b406923acc1b74a7
treee2c0394d67de74bc28c8fd48e5d21873742a5a2c
parent372954e059956aab354d9abfa7fcdcaca40a6079
(backport) Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5
Without this patch IDLE will crash reliably on OSX when Tkinter
is linked to TkCocoa 8.5.x.

To reproduce:

* Create a new file (script.py) with the following two lines:

x = raw_input('prompt: ')
print x

* Save the script

* Run the script using the F5 keyboard shortcut
  (running from the menu works fine)

The patch is a fairly crude hack, but we haven't found a better
workaround for this Tk bug yet.
Lib/idlelib/ScriptBinding.py
Misc/NEWS