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 mnewman
Recipients mnewman
Date 2009-04-14.23:47:59
SpamBayes Score 1.6873108e-10
Marked as misclassified No
Message-id <1239752882.45.0.853698903963.issue5758@psf.upfronthosting.co.za>
In-reply-to
Content
The attached ZIP file contains "test.bat" which runs "test.py" with
Python 2.6 and Python 3.0.

Python 2.6 behaves as expected (see "py26.out"), since it returns
strings from both "mike.txt" and "mike.txt.gz". However, the same test
with Python 3.0 returns bytes from "mike.txt.gz", as shown in "py30.out":
Output: Hello from Mike.
Output: This is the second line.
Output: Why did the robot cross the road?
Output: b'Hello from Mike.'
Output: b'This is the second line.'
Output: b'Why did the robot cross the road?'

For reference, I tested this on Python versions:
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit
(Intel)] on win32
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on win32
History
Date User Action Args
2009-04-14 23:48:02mnewmansetrecipients: + mnewman
2009-04-14 23:48:02mnewmansetmessageid: <1239752882.45.0.853698903963.issue5758@psf.upfronthosting.co.za>
2009-04-14 23:48:01mnewmanlinkissue5758 messages
2009-04-14 23:48:00mnewmancreate