Precision : it does not happen when running interactively.
--
http://mail.python.org/mailman/listinfo/python-list
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.
--
[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
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
[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"
> --
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