Module compat :: Class GzipFixed
[hide private]
[frames] | no frames]

Class GzipFixed

source code


Incredibly nasty hack for gzipped files support in Python 3.0, 3.1 and 3.2.

Nested Classes [hide private]

Inherited from io.IOBase: __metaclass__

Instance Methods [hide private]
 
read1(self, n)
Read and return up to n bytes, with at most one read() call to the underlying raw stream.
source code
 
readable(self)
Return whether object was opened for reading.
source code
 
seekable(self)
Return whether object supports random access.
source code
 
writable(self)
Return whether object was opened for writing.
source code

Inherited from gzip.GzipFile: __init__, __repr__, close, fileno, flush, read, readline, rewind, seek, write

Inherited from gzip.GzipFile (private): _add_read_data, _check_closed, _init_read, _init_write, _read, _read_eof, _read_gzip_header, _unread, _write_gzip_header

Inherited from _io._BufferedIOBase: detach, readinto

Inherited from _io._IOBase: __enter__, __exit__, __iter__, __new__, isatty, next, readlines, tell, truncate, writelines

Inherited from _io._IOBase (private): _checkClosed, _checkReadable, _checkSeekable, _checkWritable

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  closed = False

Inherited from gzip.GzipFile: max_read_chunk, myfileobj

Inherited from gzip.GzipFile (private): _abc_negative_cache, _abc_negative_cache_version, _abc_registry

Inherited from io.IOBase: __abstractmethods__

Inherited from io.IOBase (private): _abc_cache

Properties [hide private]

Inherited from gzip.GzipFile: filename

Inherited from object: __class__

Method Details [hide private]

read1(self, n)

source code 

Read and return up to n bytes, with at most one read() call to the underlying raw stream. A short result does not imply that EOF is imminent.

Returns an empty bytes object on EOF.

Overrides: _io._BufferedIOBase.read1
(inherited documentation)

readable(self)

source code 

Return whether object was opened for reading.

If False, read() will raise IOError.

Overrides: _io._IOBase.readable
(inherited documentation)

seekable(self)

source code 

Return whether object supports random access.

If False, seek(), tell() and truncate() will raise IOError. This method may need to do a test seek().

Overrides: _io._IOBase.seekable
(inherited documentation)

writable(self)

source code 

Return whether object was opened for writing.

If False, read() will raise IOError.

Overrides: _io._IOBase.writable
(inherited documentation)