[issue10931] print() from pipe enclosed between {b'} and {'}-pair on python3

2011-01-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's a feature. Subprocess output is binary data, not text; and since python3, the string type is now what python2 called unicode! Please read http://docs.python.org/py3k/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit for an explanation of t

[issue10931] print() from pipe enclosed between {b'} and {'}-pair on python3

2011-01-18 Thread ricardw
Changes by ricardw : -- title: print() from pipe enclosed between b' and ' pair on python3 -> print() from pipe enclosed between {b'} and {'}-pair on python3 ___ Python tracker

[issue10931] print() from pipe enclosed between b' and '  pair on python3

2011-01-18 Thread ricardw
Changes by ricardw : -- title: print() from pipe enclosed between b' and 'pair on python3 -> print() from pipe enclosed between b' and ' pair on python3 ___ Python tracker ___ _

[issue10931] print() from pipe enclosed between b' and 'pair on python3

2011-01-18 Thread ricardw
Changes by ricardw : -- title: print() from pipe enclosed between 'b and 'pair on python3 -> print() from pipe enclosed between b' and 'pair on python3 ___ Python tracker ___ __

[issue10931] print() from pipe enclosed between 'b and 'pair on python3

2011-01-18 Thread ricardw
New submission from ricardw : The following script produces different output on python2.6.6 vs. python3.1.2: - import subprocess, sys ls = subprocess.Popen(['ls', '-l', '/etc/motd'], stdout=subprocess.PIPE,) end_of_pipe = ls.stdout print('Result:') for line in end_of_pipe: pri