Author fmoreau
Recipients amaury.forgeotdarc, endolith, fmoreau
Date 2014-01-19.11:44:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.

Date User Action Args
2014-01-19 11:44:27fmoreausetrecipients: + fmoreau, amaury.forgeotdarc, endolith
2014-01-19 11:44:27fmoreausetmessageid: <>
2014-01-19 11:44:27fmoreaulinkissue3907 messages
2014-01-19 11:44:27fmoreaucreate