Author r_mosaic
Recipients r_mosaic
Date 2009-03-18.09:20:26
SpamBayes Score 2.30541e-06
Marked as misclassified No
Message-id <1237368034.29.0.0565107663013.issue5505@psf.upfronthosting.co.za>
In-reply-to
Content
Platform: Windows Vista x64
Python version: 3.0.1 x64

When I use sys.stdin.readlines(), it correctly ends when I enter ^Z 
(ctrl-Z) on the console (this is the EOF on the console). However when 
I call sys.stdin.read(), it doesn't end when ^Z is entered. It ends 
when I enter the second ^Z.

Repro steps:
1. Open python.
2. Type:
import sys
sys.stdin.read()
3. Type:
Hello
^Z
4. Note the above ^Z should be followed by a Return.
Result:
The function call doesn't end. If I enter another ^Z, it ends.
Expected result:
The function call ends.
History
Date User Action Args
2009-03-18 09:20:34r_mosaicsetrecipients: + r_mosaic
2009-03-18 09:20:34r_mosaicsetmessageid: <1237368034.29.0.0565107663013.issue5505@psf.upfronthosting.co.za>
2009-03-18 09:20:28r_mosaiclinkissue5505 messages
2009-03-18 09:20:27r_mosaiccreate