Message83736
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. |
|
Date |
User |
Action |
Args |
2009-03-18 09:20:34 | r_mosaic | set | recipients:
+ r_mosaic |
2009-03-18 09:20:34 | r_mosaic | set | messageid: <1237368034.29.0.0565107663013.issue5505@psf.upfronthosting.co.za> |
2009-03-18 09:20:28 | r_mosaic | link | issue5505 messages |
2009-03-18 09:20:27 | r_mosaic | create | |
|