[ python-Bugs-1586613 ] zlib/bz2_codec doesn't support incremental decoding

SourceForge.net noreply at sourceforge.net
Sun Oct 29 15:40:37 CET 2006


Bugs item #1586613, was opened at 2006-10-29 11:14
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1586613&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Topia (topia)
>Assigned to: Georg Brandl (gbrandl)
Summary: zlib/bz2_codec doesn't support incremental decoding

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-10-29 14:40

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1586613&group_id=5470


More information about the Python-bugs-list mailing list