Serhiy Storchaka storch...@gmail.com added the comment:
Why not simple gzip.GzipFile(fileobj=u).read()?
--
nosy: +storchaka
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15087
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: invalid - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15087
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Thanks. I didn't know that this had already been added to 3.2
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15087
___
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
The API for the gzip module is convenient for reading gzipped file but is
rather awkward for reading bytes downloaded from a socket:
import gzip, io
from urllib.request import urlopen, Request
u =
Nadeem Vawda nadeem.va...@gmail.com added the comment:
There is already such a function, gzip.decompress() - it was added in 3.2.
--
nosy: +nadeem.vawda
resolution: - invalid
stage: - committed/rejected
status: open - pending
___
Python tracker