[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-05-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1c6823317a06 by Ronald Oussoren in branch '3.2': Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5 http://hg.python.org/cpython/rev/1c6823317a06 -- nosy: +python-dev

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-05-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 85aa02bc674c by Ronald Oussoren in branch 'default': Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5 http://hg.python.org/cpython/rev/85aa02bc674c -- ___

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-05-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 578020fe2875 by Ronald Oussoren in branch '2.7': (backport) Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5 http://hg.python.org/cpython/rev/578020fe2875 --

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-05-17 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I don't really like this patch, but like crashes that cause data loss even less... -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I don't have any better suggestions at the moment so let's go with it. Perhaps we'll get more insight to the root cause later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11088

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The same fix also works with 2.7. The attached patch is basically the same patch, but the special casing for OSX is impacts other platforms even less than before. -- Added file:

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This does seem to be gone in 3.2 with a up-to-date Tk 8.5 from ActiveState. -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11088

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I can still reproduce it in 3.2 with A/S Tk 8.5. The script needs to be run from a separate editor window, not the PyShell window. -- ___ Python tracker rep...@bugs.python.org

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: On 15 Mar, 2011, at 13:57, Ned Deily wrote: Ned Deily n...@acm.org added the comment: I can still reproduce it in 3.2 with A/S Tk 8.5. The script needs to be run from a separate editor window, not the PyShell window. That's

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Sorry, forgot one crucial step: you have to use the keyboard accelerator (F5) to run the script, not the mouse and the menu. It seems like a number of the problems out there with Cocoa Tk 8.5 have to do with using the keyboard accelerators.

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This isn't strictly a key-bindings problem, other events also cause problems. I've patched ScriptBinding.py and repacled run_module_event that causes the original, now renamed, method to be called a little why later. This change

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Got it to work by introducing both a delayed call and a generated event, just one of those isn't good enough. The attached patch seems to fix the issue for me (patch was created using diff(1), not through mercurial). I haven't tested

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: Removed file: http://bugs.python.org/file21226/issue-11088.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11088 ___

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Added an updated version of the patch: * Only perform the workaround in IDLE.app on OSX * A slightly longer timeout is needed to work reliably on my machine The latter bullet indicates that this is probably not a reliable fix, there is

[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-02-01 Thread Ned Deily
New submission from Ned Deily n...@acm.org: As reported by Alex McNerney in Issue11075 msg127687: ... running Python 2.7.1:88286 (maintenance) [built from source] on ActiveState Tcl/Tk 8.5.9 causes the idle to hang when a simple script like: x = raw_input(x: ) print x is run. Is this a bug