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: zlib/bz2_codec doesn't support incremental decoding
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, topia
Priority: normal Keywords:

Created on 2006-10-29 11:14 by topia, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30410 - (view) Author: Topia (topia) Date: 2006-10-29 11:14
http://svn.python.org/view/python/trunk/Lib/encodings/zlib_codec.py?rev=43045&view=auto

Incremental encoding/decoding must be stateful.
Please use compressobj/decompressobj object.

Incremental(Encoder|Decoder)/Stream(Reader|Writer)
don't work with current code at all.
msg30411 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-10-29 14:40
Logged In: YES 
user_id=849994

Fixed the incremental coders/decoders in rev. 52529, 52530
(2.5).

The StreamReaders/Writers can't be fixed as easily, because
their encode/decode methods don't have a "final" flag, so
they wouldn't know when to flush the compress object.
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44176
2006-10-29 11:14:01topiacreate