This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rebecca
Recipients Rebecca
Date 2007-09-24.10:48:55
SpamBayes Score 0.0199434
Marked as misclassified No
Message-id <>
Run the program:

while True:
        s = raw_input('> ')

Press Ctrl-D and then Ctrl-C, and you get

Traceback (most recent call last):
  File "", line 5, in ?
    s = raw_input('> ')

Pressing just Ctrl-D or Ctrl-C continues the loop as expected, Ctrl-D
after Ctrl-C works, too. Only Ctrl-C after Ctrl-D sucks, even when you
try to catch "EOFError" and "KeybordInterrupt" explicitly.

The problem occurs with Python 2.4 and 2.5 on Debian testing, friends
confirmed the error under Ubuntu/2.5 and Gentoo/?.

The error does not occur when you import readline first.

Ah, and by the way:
still links to the sourceforce bucktracker.
Date User Action Args
2007-09-24 10:48:56Rebeccasetspambayes_score: 0.0199434 -> 0.0199434
recipients: + Rebecca
2007-09-24 10:48:56Rebeccasetspambayes_score: 0.0199434 -> 0.0199434
messageid: <>
2007-09-24 10:48:56Rebeccalinkissue1195 messages
2007-09-24 10:48:55Rebeccacreate