[issue12591] text files returned by subprocess.Popen with universal_newlines=True are not iterable

R. David Murray report at bugs.python.org
Wed Jul 20 14:06:43 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

This isn't a problem with ConfigParser, it's a problem with the text file object returned by Subprocess.  You can reproduce the bug by trying to iterate over the TextIOWrapper returned by subprocess.

(It is true, however, that the ConfigParser docs should be specific that it isn't "any file", but "any text file".  If you would like to open a separate issue about that, that would be great).

----------
nosy: +gregory.p.smith, haypo, lukasz.langa, pitrou, r.david.murray
stage:  -> needs patch
title: configparser can't read_file the output of subprocess.Popen -> text files returned by subprocess.Popen with universal_newlines=True are not iterable
type:  -> behavior
versions: +Python 3.3

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


More information about the Python-bugs-list mailing list