Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using Gzip Module

DZone's Guide to

Using Gzip Module

·
Free Resource
Modified from this funny thread in c.l.p
http://groups.google.co.uk/group/comp.lang.python/msg/e53361331c23fd76


import gzip

zfile = gzip.GzipFile('somefile.gz')
content = zfile.read()
zfile.close()
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}