[New-bugs-announce] [issue39346] gzip module only supports half of possible read/write scenarios

Drew DeVault report at bugs.python.org
Wed Jan 15 15:27:38 EST 2020


New submission from Drew DeVault <sir at cmpwn.com>:

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.

----------
components: Library (Lib)
messages: 360072
nosy: ddevault
priority: normal
severity: normal
status: open
title: gzip module only supports half of possible read/write scenarios
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39346>
_______________________________________


More information about the New-bugs-announce mailing list