classification
Title: gzip module only supports half of possible read/write scenarios
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ddevault
Priority: normal Keywords:

Created on 2020-01-15 20:27 by ddevault, last changed 2020-01-15 20:27 by ddevault.

Messages (1)
msg360072 - (view) Author: Drew DeVault (ddevault) Date: 2020-01-15 20:27
A gzip file can have uncompressed data written to it, writing compressed data to the underlying file. It can also have uncompressed data read from it, reading compressed data from the underlying file.

However, it does not support reading compressed data from an underlying uncompressed file, nor writing compressed data to an underlying uncompressed file.

This makes it impossible to, for example, obtain an arbitrary file-like object and produce another file-like object which transparently compresses data read from the first.
History
Date User Action Args
2020-01-15 20:27:46ddevaultsettype: enhancement
2020-01-15 20:27:38ddevaultcreate