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 maenpaa
Recipients
Date 2007-03-20.02:43:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I'd contend that this is not a bug:
 * If you need to seek, you can wrap the file-like object in a StringIO (which is what urllib would have to do internally, thus incurring the StringIO overhead for all clients, even those that don't need the functionality).
 * You can check the type of the response content before you try to uncompress it via the Content-Encoding header of the response.  The meta-data is there for a reason.

Check http://www.diveintopython.org/http_web_services/gzip_compression.html for a rather complete treatment of your use-case.
History
Date User Action Args
2007-08-23 14:52:32adminlinkissue1682241 messages
2007-08-23 14:52:32admincreate