[New-bugs-announce] [issue12306] zlib: Expose zlibVersion to query runtime version of zlib

Torsten Landschoff report at bugs.python.org
Fri Jun 10 02:51:04 CEST 2011

New submission from Torsten Landschoff <t.landschoff at gmx.net>:

I am currently fighting a curious problem in using zlib from Python: Decompression completes but sometimes the resulting output does not match a sha224 hash of the expected output.

I deployed a zlib 1.2.5 with our PyInstaller output but the problem persists. I would like to check that the program is actually using the right zlib version.

zlib provides the function zlibVersion to access the actual run time version. The attached patch exposes this function from the zlib module. I also added a unit test to check that the function is there and the output matches ZLIB_VERSION (which should match on the build machine).

components: Library (Lib)
files: zlibversion.diff
keywords: patch
messages: 138044
nosy: torsten
priority: normal
severity: normal
status: open
title: zlib: Expose zlibVersion to query runtime version of zlib
type: feature request
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22307/zlibversion.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list