]> granicus.if.org Git - python/commit
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 12:52:21 +0000 (14:52 +0200)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 17 May 2011 12:52:21 +0000 (14:52 +0200)
commit1cb08c3f838524827cb054f016849a28aa49549c
tree882c7f6d534e00078191612b5621044f3fcb90f7
parent2b7ea91e3dbb08ec1d4ddaa196f745596ebd1830
parent5ee0567bb2af1c81da72990c9b2cd199af2e2ace
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 = 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.
Misc/NEWS