New submission from Drew DeVault <s...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39346>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to