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 ncoghlan
Recipients lucaspmelo, ncoghlan
Date 2009-07-17.22:39:41
SpamBayes Score 7.861161e-07
Marked as misclassified No
Message-id <1247870383.36.0.251960469792.issue6467@psf.upfronthosting.co.za>
In-reply-to
Content
Confirmed - it's actually pressing "Ctrl-D" after entering text on the
line that seems to cause strange behaviour. For example, in the
following, the only letters I typed were "test" and then I just pressed
"Ctrl-D" 4 times and got the output seen below:

$ ./python raw_input_test.py
testtes
Traceback (most recent call last):
  File "raw_input_test.py", line 3, in <module>
    c = raw_input()
EOFError

The "test" appeared as typed, the "tes\n" appeared after pressing Ctrl-D
three times, then the 4th Ctrl-D on its own line correctly triggered
EOFError.

(This with 2.7a0 on Ubuntu 8.04)
History
Date User Action Args
2009-07-17 22:39:43ncoghlansetrecipients: + ncoghlan, lucaspmelo
2009-07-17 22:39:43ncoghlansetmessageid: <1247870383.36.0.251960469792.issue6467@psf.upfronthosting.co.za>
2009-07-17 22:39:41ncoghlanlinkissue6467 messages
2009-07-17 22:39:41ncoghlancreate