Message140849
The "universal_newlines" feature is rather poorly named in Python 3.x, since it does much more than that (the resulting files yield and expect unicode strings rather than bytes objects).
The problem is that io.TextIOWrapper needs a buffered I/O object, but bufsize is 0 by default in subprocess.Popen(). In the meantime, you can workaround it using a non-zero bufsize in the Popen() constructor. Of course, this has the side-effect of forcing you to call flush() on the stdin stream (if you are using it). |
|
Date |
User |
Action |
Args |
2011-07-22 00:48:49 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, vstinner, eric.araujo, r.david.murray, anacrolix, lukasz.langa |
2011-07-22 00:48:49 | pitrou | set | messageid: <1311295729.09.0.591807043276.issue12591@psf.upfronthosting.co.za> |
2011-07-22 00:48:48 | pitrou | link | issue12591 messages |
2011-07-22 00:48:48 | pitrou | create | |
|