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 fmoreau
Recipients amaury.forgeotdarc, endolith, fmoreau
Date 2014-01-19.11:44:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390131867.76.0.248784628032.issue3907@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry for reopening this bug, but I agree with the OP, and I can still see the exact same behaviour on python 2.7.6 (archlinux).

At least, the documentation should clarify that doing "for line in file" is not strictly equivalent to the "readline" way regarding to the buffering policy used with pipes.

I'm also dubious about the buffering optimisation for the pipe case but readline() documentation should state that it will never use such buffering mechanism so we can safely use it when dealing with pipe.

Thanks
History
Date User Action Args
2014-01-19 11:44:27fmoreausetrecipients: + fmoreau, amaury.forgeotdarc, endolith
2014-01-19 11:44:27fmoreausetmessageid: <1390131867.76.0.248784628032.issue3907@psf.upfronthosting.co.za>
2014-01-19 11:44:27fmoreaulinkissue3907 messages
2014-01-19 11:44:27fmoreaucreate