[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 rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Issue #1677: Unused variable warning in Non-Windows
http://hg.python.org/cpython/rev/7937aa6b7e92

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 were written separately and I didn't
check carefully enough? I'll drop back to 10ms all round;
it never took more than 3 1-ms loops to fire in testing.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in branch '3.2':
Issue #1677: Handle better a race condition between the interactive interpreter 
and
http://hg.python.org/cpython/rev/52af10209976

New changeset 9523c122d6fc by Tim Golden in branch 'default':
Issue #1677: Handle better a race condition between the interactive interpreter 
and
http://hg.python.org/cpython/rev/9523c122d6fc

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file26196/issue1677-python27.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 trying to narrow it down through some instrumentation (read: printf) on the 
2.7 branch. The MSDN page for signal warns that a separate thread will be 
created for the signal handler which will muddy the waters.

--
nosy: +tim.golden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 returned from fgets in the CRT. 

That then tries to play ball with a the interrupt handler having fired already 
(in a separate thread) by sleeping for one second and checking that the handler 
was tripped. If it has then the function returns one and stuff happens 
elsewhere; it it hasn't then the function behaves as if EOF (ie Ctrl-Z) was 
pressed and Python exits.

That's as far as I've got; it looks like a race condition of some sort but I 
can't see where. I'm not 100% sure that the SIGINT handler is tripping.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.x patch can be tested.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
like try to install readline on Windows.

I also tried it on cygwin Python (2.6), held down for maybe 20 seconds, didn't 
crash.

--
nosy: +Devin Jeanpierre

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.
Though it's not normal to hold down Ctrl-C, in practice that means pressing 
Ctrl-C
to cancel a currently running script may just exit the interpreter.
Python 3.1 seems really terrible in this regard where sometimes a single Ctrl-C 
will exit the interpreter.

I have seen this issue fixed in Python 2.5.2 on Windows. It would never exit 
the interpreter no matter how long I pressed Ctrl-C. I don't see this issue in 
Linux. I don't have a Mac to test, but I'd like Mac users to test the signal 
handling in their terminals.

--
assignee:  - ronaldoussoren
components: +Interpreter Core, Windows
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
nosy: +ronaldoussoren

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 see if there's a way 
to make the interpreter bullet proof from Ctrl-C, or at least good 
enough so that a single Ctrl-c won't cause the interpreter to exit.

--
versions: +Python 2.4, Python 2.5, Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1677
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, and are much slower.
It is possible that when the key buffer is full, the next Ctrl-C kills
the program. And this is more likely to happen with python3.0.

--
nosy: +amaury.forgeotdarc

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1677
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 interrupts before quitting, but the 
latest snapshot (Dec 20th) can not.

Steps to reproduce:
Run python.exe
hold down ctrl-c, or press it many times. It will quit the interpreter 
eventually.

--
components: Interpreter Core
messages: 58933
nosy: Dude-X
severity: normal
status: open
title: Ctrl-C will exit out of Python interpreter in Windows
type: behavior
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1677
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com