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 Dave.Flogeras
Recipients Dave.Flogeras
Date 2011-02-22.00:47:04
SpamBayes Score 4.800191e-06
Marked as misclassified No
Message-id <1298335624.95.0.787051793751.issue11278@psf.upfronthosting.co.za>
In-reply-to
Content
From the python prompt, raw_input() (2.7.1) and input (3.2.0) behave as documented (they strip the trailing EOL chars)

However the two line test program:
x = raw_input() # or input() in 3.2.x
print( repr( x ))

And then run from the command line prompt, .\test.py, shows 'mytest\r' including the EOL char.
History
Date User Action Args
2011-02-22 00:47:05Dave.Flogerassetrecipients: + Dave.Flogeras
2011-02-22 00:47:04Dave.Flogerassetmessageid: <1298335624.95.0.787051793751.issue11278@psf.upfronthosting.co.za>
2011-02-22 00:47:04Dave.Flogeraslinkissue11278 messages
2011-02-22 00:47:04Dave.Flogerascreate