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 lucaspmelo
Recipients lucaspmelo
Date 2009-07-12.11:57:23
SpamBayes Score 0.0023127436
Marked as misclassified No
Message-id <1247399845.7.0.918611986455.issue6467@psf.upfronthosting.co.za>
In-reply-to
Content
----------------------------------
$ cat raw_input_test.py
s = ''
try:
    while True:
        c = raw_input()
	print c
	s += c
except EOFError:
    pass
$ python raw_input_test.py
test^D^Dtes
^D
$ python --version
Python 2.7a0
$ bash --version
GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
----------------------------------

Surprisingly, though:

----------------------------------
$ python raw_input_test.py > output
test^D^D^D
$ cat output
test
----------------------------------
^D = Press Ctrl+D

I am using Ubuntu 9.04 (Jaunty Jackalope).
History
Date User Action Args
2009-07-12 11:57:25lucaspmelosetrecipients: + lucaspmelo
2009-07-12 11:57:25lucaspmelosetmessageid: <1247399845.7.0.918611986455.issue6467@psf.upfronthosting.co.za>
2009-07-12 11:57:24lucaspmelolinkissue6467 messages
2009-07-12 11:57:23lucaspmelocreate