This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 2022-04-11 14:59 by admin.

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
2022-04-11 14:59:25adminsetgithub: 83527
2020-01-15 20:27:46ddevaultsettype: enhancement
2020-01-15 20:27:38ddevaultcreate