Message208474
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 |
|
Date |
User |
Action |
Args |
2014-01-19 11:44:27 | fmoreau | set | recipients:
+ fmoreau, amaury.forgeotdarc, endolith |
2014-01-19 11:44:27 | fmoreau | set | messageid: <1390131867.76.0.248784628032.issue3907@psf.upfronthosting.co.za> |
2014-01-19 11:44:27 | fmoreau | link | issue3907 messages |
2014-01-19 11:44:27 | fmoreau | create | |
|