Message83736
| Author |
r_mosaic |
| Recipients |
r_mosaic |
| Date |
2009年03月18日.09:20:26 |
| SpamBayes Score |
2.3054101e-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: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 |
|