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 cassava, famart, ggenellina, ocean-city, pitrou, r_mosaic, vstinner
Date 2011-07-07.21:37:32
SpamBayes Score 1.64191e-09
Marked as misclassified No
Message-id <>
> I don't know if something changed in Python 3.3, or ...

Yes, something changed in Python 3.3. I fixed this issue "by mistake" :-) The fix is the following commit:

New changeset 3c7792ec4547 by Victor Stinner in branch 'default':
Issue #12175: now calls raw.readall() if available.

It is a bug in BufferedReader, a bug or an unexpected behaviour. Before this commit (e.g. in Python 3.2.0), calls two times for this issue: the first call returns an non empty string (the string until the first ^Z), the second call returns an empty string (the string until the second ^Z). loop ends with returns an empty string.

You can workaround this issue by calling sys.stdin.buffer.raw.readall() or

I chose to not port my fix (call raw.readall() if available) in Python 3.2 because it changes the behaviour, and I don't want to do that in a minor release.

Is anyone in favor of changing the behaviour of in a minor release (next 2.7.3 and 3.2.2)? Or can I close the issue (the bug is already fixed in Python 3.3)?
Date User Action Args
2011-07-07 21:37:34vstinnersetrecipients: + vstinner, ggenellina, pitrou, ocean-city, r_mosaic, cassava, famart
2011-07-07 21:37:34vstinnersetmessageid: <>
2011-07-07 21:37:33vstinnerlinkissue5505 messages
2011-07-07 21:37:32vstinnercreate