This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ricardw
Recipients ricardw
Date 2011-01-18.11:12:59
SpamBayes Score 2.2343738e-07
Marked as misclassified No
Message-id <1295349188.44.0.579328833757.issue10931@psf.upfronthosting.co.za>
In-reply-to
Content
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:
    print(line.strip())
-------------

Result from invoking with python2 and python3 are respectively:

Result:
-rw-rw---- 1 root root 25 Jan 18 10:25 /etc/motd

and:

Result:
b'-rw-rw---- 1 root root 25 Jan 18 10:25 /etc/motd'

Is this difference a feature, or a bug ?
History
Date User Action Args
2011-01-18 11:13:08ricardwsetrecipients: + ricardw
2011-01-18 11:13:08ricardwsetmessageid: <1295349188.44.0.579328833757.issue10931@psf.upfronthosting.co.za>
2011-01-18 11:12:59ricardwlinkissue10931 messages
2011-01-18 11:12:59ricardwcreate