[New-bugs-announce] [issue6485] is_finished not exported by zlib

Travis H. report at bugs.python.org
Wed Jul 15 00:30:23 CEST 2009


New submission from Travis H. <travis+w-python.org at subspacefield.org>:

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.

----------
components: Extension Modules
messages: 90521
nosy: solinym
severity: normal
status: open
title: is_finished not exported by zlib
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6485>
_______________________________________


More information about the New-bugs-announce mailing list