[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-07-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2de5c9ced464 by Jesus Cea in branch '2.7': Issue #1677: Unused variable warning in Non-Windows http://hg.python.org/cpython/rev/2de5c9ced464 -- ___ Python tracker

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-07-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4de541fbdd58 by Jesus Cea in branch '3.2': Issue #1677: Unused variable warning in Non-Windows http://hg.python.org/cpython/rev/4de541fbdd58 New changeset 7937aa6b7e92 by Jesus Cea in branch 'default': NULL MERGE:

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-07-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing list

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-07-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: And here's the patch against 3.2 (essentially the 2.7 patch but allowing for the removal of RISCOS support) -- Added file: http://bugs.python.org/file26207/issue1677-python32.patch ___ Python

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: Removed file: http://bugs.python.org/file26207/issue1677-python32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: Added file: http://bugs.python.org/file26208/issue1677-python32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Tim, you've got tabs in your 3.3 patch. Other than that, I wonder why you wait for 100 ms in 3.3 but 10 ms in the other versions? -- ___ Python tracker rep...@bugs.python.org

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Tim, you've got tabs in your 3.3 patch. Thanks, Antoine. I'll sort that out. (Goodness know how; none of my editors use tabs). Other than that, I wonder why you wait for 100 ms in 3.3 but 10 ms in the other versions? Ummm. Because they

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bb4b184e5b33 by Tim Golden in branch '2.7': Issue #1677: Handle better a race condition between the interactive interpreter and http://hg.python.org/cpython/rev/bb4b184e5b33 New changeset 52af10209976 by Tim Golden

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-29 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Attached is a patch against Python 2.7. It checks in a loop for SIGINT and, if it still hasn't fired, assumed Ctrl-Z was pressed which generates the same error. -- assignee: - tim.golden keywords: +patch Added file:

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Shouldn't we be using a proper synchronization primitive? What about waiting for an event? -- nosy: +kristjan.jonsson ___ Python tracker rep...@bugs.python.org

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: In fact, there is _PyOS_SigintEvent at the end of signalmodule.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Is the ERROR_OPERATION_ABORTED set when Ctrl-Z is hit? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Yep. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: To be clear: ERROR_OPERATION_ABORTED is set when Ctrl-Z is hit as the only thing on a line. If it's just an extra character then it operates like any other keypress. -- ___ Python tracker

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: This patch is for 2.7 and does enough to solve the issue without a major rework. The signal module onthe default branch has had a lot of love recently and I'll definitely make use of that for a 3.x patch. --

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Hm, I wonder if the test for the SIGINT event is required at all. Could it be sufficient to simply check for the EOF state? EOF would indicate ctrl z and distinguish it thus from ctrl-c. --

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Nope. Ctrl-C also sets EOF -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: And here's a patch for the default branch, using the new sigint event as Kristan suggested. -- Added file: http://bugs.python.org/file26202/issue1677-python3x.patch ___ Python tracker

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Just to confirm: I can reproduce this more or less consistently on all versions of Python 2.2 - 3.2 on Windows 7. Those are distribution builds -- ie not debug builds I've made myself. But it certainly does occur on a debug build of 2.7. I'm

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: OK, I've run out of time to look, but the culprit looks like it's an odd interaction between my_fgets in myreadline.c and the interrupt handler in signal. There's a section of code which is conditional on ERROR_OPERATION_ABORTED being

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Great analysis! ... by sleeping for one second ... Note that Sleep(1) only sleeps for 1 millisecond. Does the issue go away if you replace with Sleep(10)? -- ___ Python tracker

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: That'll be my next move when I get some more time. I've got someone coming over to see me (about real work!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: OK, it is a race condition between the code in myreadline.c and the signal_handler in signalmodule.c. It can take between 0 and 3 sleeps for the myreadline code to see the signal tripped. Patch on its way for 2.7; VS 2010 downloading so that

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com added the comment: For extra clarification, this issue can crop up with even a single press of ctrl-c. It's not really related to multiple presses, except that pressing it more increases the odds of it happening. -- nosy: +Devin Jeanpierre

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: Could add a printf() to PC/launcher.c:ctrl_c_handler() to test if the handler is called in the error case? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-26 Thread Mark Hammond
Changes by Mark Hammond skippy.hamm...@gmail.com: -- nosy: +mhammond ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt -Devin Jeanpierre versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com added the comment: Windows 7 64-bit (on the metal, not in a VM), can confirm. Holding down Ctrl+C will (eventually) halt Python on all the versions I have installed: 2.3, 2.7, 3.0, 3.1, 3.2. (All of these are 32-bit Pythons). Haven't done anything silly

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'm not able to reproduce this. Do you have anything installed like pyreadline? -- assignee: ronaldoussoren - nosy: +brian.curtin versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can't reproduce this on windows (in a KVM) with 2.6 or 2.7. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-27 Thread Isaul Vargas
Isaul Vargas isa...@gmail.com added the comment: I tested this on a real Windows 7 machine (64 bit, Ultimate) I open the command prompt, and I have the latest Pythons installed, Python 2.6.6, Python 2.7 final, and Python 3.1.2 If I hold down Ctrl-C, it will eventually exit the interpreter.

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-04-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Unassigning this issue from myself as I cannot reproduce the issue on OSX. -- assignee: ronaldoussoren - nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-09-06 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: -ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-06-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Removing the Windows part: on my machine, repeated Ctrl-C's don't exit the 3.1 interpreter, probably because the io module is now written in C. -- assignee: - ronaldoussoren components: +Macintosh -Interpreter Core, Windows

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-06-23 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I cannot reproduce this on my machine (running OSX) using 2.5, 2.6 and 3.1 (latest rc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-04-27 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed versions: +Python 3.1 -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2008-01-03 Thread Joseph Armbruster
Changes by Joseph Armbruster: -- components: +Windows __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1677 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2007-12-23 Thread Isaul Vargas
Isaul Vargas added the comment: I wanted to add that this issue also affects python 2.5.1 on the Mac. Sometimes I may be writing something in the interpreter and I decide to invalidate my input by pressing Ctrl-C. This will exit the interpreter occasionally. I think it would be a good idea to

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2007-12-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I get the same behaviour with python 2.5.1, and even 2.4.4 (on Windows 2000): I hold down Ctrl-C, and after ~30 KeyboardInterrupt, the interpreter stops. So this is not 3.0 specific. What is new in python3.0 is that file objects are implemented in python,

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2007-12-21 Thread Christian Heimes
Christian Heimes added the comment: I don't think it's a critical bug but it may be worth to debug it. -- keywords: +py3k nosy: +tiran priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1677 __

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2007-12-20 Thread Isaul Vargas
New submission from Isaul Vargas: When running Python 2.5.1 stable in Windows, you can press Ctrl-C as many times as you want and it will always output Keyboard Interrupt in the interpreter. Python 3.0a+ will quit if you press ctrl-c too many times. The last release of 3.0a2 can handle many