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 loewis
Recipients
Date 2006-11-22.06:57:13
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I don't think urlopen(...).read() should return strings in Py3k, but instead it should return bytes - in general, resources retrieved are byte sequences (many are application/octet-stream).

Making the return type depend on the resource being fetched is also unintuitive.

It might be reasonable to have the user specified "binary" or "text" on urlopen() (just like regular open()).
History
Date User Action Args
2008-01-20 09:59:51adminlinkissue1599329 messages
2008-01-20 09:59:51admincreate