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 belopolsky
Recipients belopolsky, eric.araujo, jcea, nadeem.vawda, pasma10@concepts.nl, vstinner
Date 2011-04-15.20:09:19
SpamBayes Score 0.018883882
Marked as misclassified No
Message-id <1302898159.86.0.0144162031611.issue11851@psf.upfronthosting.co.za>
In-reply-to
Content
In python 2.x, sys.stdin.flush() is more or less equivalent to C fflush(stdin).  The behavior of fflush() on streams that are open for reading only is undefined. [1]

Python 3.x io does not use C stdio library and therefore it is not surprising that the behavior is different.

[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/fflush.html
History
Date User Action Args
2011-04-15 20:09:19belopolskysetrecipients: + belopolsky, jcea, vstinner, nadeem.vawda, eric.araujo, pasma10@concepts.nl
2011-04-15 20:09:19belopolskysetmessageid: <1302898159.86.0.0144162031611.issue11851@psf.upfronthosting.co.za>
2011-04-15 20:09:19belopolskylinkissue11851 messages
2011-04-15 20:09:19belopolskycreate