Trees | Indices | Help |
|
---|
|
Functions that read and write gzipped files.
The user of the file doesn't have to worry about the compression, but random access is not allowed.
|
|||
GzipFile The GzipFile class simulates most of the methods of a file object with the exception of the readinto() and truncate() methods. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
FCOMMENT = 16
|
|||
FEXTRA = 4
|
|||
FHCRC = 2
|
|||
FNAME = 8
|
|||
FTEXT = 1
|
|||
READ = 1
|
|||
WRITE = 2
|
Imports: struct, sys, time, zlib, __builtin__
|
Return i as an unsigned integer, assuming it fits in 32 bits. If it's >= 2GB when viewed as a 32-bit unsigned int, return a long. |
Shorthand for GzipFile(filename, mode, compresslevel). The filename argument is required; mode defaults to 'rb' and compresslevel defaults to 9. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Jan 29 22:40:56 2008 | http://epydoc.sourceforge.net |