[Patches] [ python-Patches-678531 ] zlib module needs decompress flush.

SourceForge.net noreply@sourceforge.net
Mon, 03 Feb 2003 12:53:44 -0800


Patches item #678531, was opened at 2003-01-31 22:13
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=678531&group_id=5470

Category: Modules
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Scott David Daniels (scott_daniels)
Assigned to: Nobody/Anonymous (nobody)
Summary: zlib module needs decompress flush.

Initial Comment:
Python 2.3 current (should work on 2,1 and 2.2 as well)
OS: Win2K

The zlibmodule.c sources mistakenly don't implement 
flush() on decompression objects.  The assumption is
that all data will have been extracted once all of the 
source is available.
This patch simply implements flush in the obvious way.
As mentioned in bug #640230, the previous test did not
successfully test the decompression object.

I'll attach in a subsequent patch a PyUnit-style
test_zlib.py 
that exercises zlib and checks the buffer flushing (because
I don't see how to attach two files).

-Scott




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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-02-03 15:53

Message:
Logged In: YES 
user_id=6380

All checked in. Thanks!

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

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