Re: KeybordInterrupts and friends

2006-04-26 Thread [EMAIL PROTECTED]
Precision : it does not happen when running interactively. -- http://mail.python.org/mailman/listinfo/python-list

Re: KeybordInterrupts and friends

2006-04-26 Thread [EMAIL PROTECTED]
I know it is racey, but the bug is not the race (iow : it is not a matter of pressing twice C-c very quickly). It happens all the time. I let enough time between the key strokes to let the program wait on raw_input. Or maybe you have something else in mind. Care to expand ? Thanks, Aurélien. --

Re: KeybordInterrupts and friends

2006-04-26 Thread robert
[EMAIL PROTECTED] wrote: > Thanks Robert. > > But I'm not trying something at all with this, only asking if it is a > bug (and it looks like one). I suspect too, that it is related to > signal handling. > > Cheers, > Aurélien. you not protected all the time during the loop -robert -- http://m

Re: KeybordInterrupts and friends

2006-04-26 Thread [EMAIL PROTECTED]
Thanks Robert. But I'm not trying something at all with this, only asking if it is a bug (and it looks like one). I suspect too, that it is related to signal handling. Cheers, Aurélien. -- http://mail.python.org/mailman/listinfo/python-list

Re: KeybordInterrupts and friends

2006-04-26 Thread robert
[EMAIL PROTECTED] wrote: > Hello, > > I have a problem with the following code fragment : > > > import sys > > while True: > try: > raw_input() > except EOFError: > print "C-d" > except KeyboardInterrupt: > print "C-c" > --

KeybordInterrupts and friends

2006-04-26 Thread [EMAIL PROTECTED]
Hello, I have a problem with the following code fragment : import sys while True: try: raw_input() except EOFError: print "C-d" except KeyboardInterrupt: print "C-c" The following behaviour seems bogus to me : [EMAIL