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 vstinner
Recipients Finkregh, Rebecca, ajaksu2, falsetru, georg.brandl, nvetoshkin, pitrou, python-dev, schmir, vstinner
Date 2011-05-10.01:06:33
SpamBayes Score 0.000188343
Marked as misclassified No
Message-id <>
> 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 to clear the EOF flag if the read was stopped because of the EOF.
Date User Action Args
2011-05-10 01:06:34vstinnersetrecipients: + vstinner, georg.brandl, pitrou, falsetru, ajaksu2, schmir, Rebecca, nvetoshkin, Finkregh, python-dev
2011-05-10 01:06:34vstinnersetmessageid: <>
2011-05-10 01:06:33vstinnerlinkissue1195 messages
2011-05-10 01:06:33vstinnercreate