◐ Shell
clean mode source ↗

Issue 6485: is_finished not exported by zlib

Issue6485

Created on 2009-07-14 22:30 by solinym, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg90521 - (view) Author: Travis H. (solinym) Date: 2009-07-14 22:30
The zlib C library has the capability to indicate the end of a
compressed stream by returning a Z_STREAM_END from a call to inflate.

This allows uncompressed data to follow some compressed data.  It is
necessary to know when the end of the compressed stream has been reached
so that one can query the "unused_data" attribute.

However, there is no way for python to know that the end of a compressed
stream has been reached.

I will shortly be submitting a small patch that creates a python integer
attribute called "is_finished" which evaluates to 1 when the end of a
compressed stream has been reached.
msg90522 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2009-07-14 22:32
This is a duplicate of #5210, which has a patch attached.
History
Date User Action Args
2022-04-11 14:56:51adminsetgithub: 50734
2009-07-14 22:38:08ezio.melottisetstatus: open -> closed
resolution: duplicate
superseder: zlib does not indicate end of compressed stream properly
stage: resolved
2009-07-14 22:32:03exarkunsetnosy: + exarkun
messages: + msg90522
2009-07-14 22:30:22solinymcreate