Message135672
| Author |
vstinner |
| Recipients |
Finkregh, Rebecca, ajaksu2, falsetru, georg.brandl, nvetoshkin, pitrou, python-dev, schmir, vstinner |
| Date |
2011年05月10日.01:06:33 |
| SpamBayes Score |
0.00018834308 |
| Marked as misclassified |
No |
| Message-id |
<1304989594.63.0.6021328237.issue1195@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> The patch still does not handle the case where the eof indicator
> is already set when calling raw_input. My original patch does.
Correct, your example fails, but only in Python 2.7. I don't like the idea of always clearing errors. I prefer to reset stdin only after an error or EOF. Attached patch changes file.read() to clear the EOF flag if the read was stopped because of the EOF. |
|