[issue6485] is_finished not exported by zlib
report at bugs.python.org
Wed Jul 15 00:30:24 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
title: is_finished not exported by zlib
versions: Python 2.6
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list