[issue3907] "for line in file" doesn't work for pipes

Amaury Forgeot d'Arc report at bugs.python.org
Fri Sep 19 10:35:13 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Python 2.6 and 3.0 come with a completely new I/O implementation, which
correctly handle pipes in this regard (I just tested).

http://docs.python.org/dev/library/io.html

With the 3.0 version, the built-in open() is an alias for io.open;
with 2.6, you have to use io.open() explicitely.

----------
nosy: +amaury.forgeotdarc
resolution:  -> works for me
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3907>
_______________________________________


More information about the Python-bugs-list mailing list