[docs] [issue5784] raw deflate format and zlib module

Martin Panter report at bugs.python.org
Fri May 27 19:00:55 EDT 2016


Martin Panter added the comment:

> v = tuple(map(int, zlib.ZLIB_RUNTIME_VERSION.split(".")))
> supports_wbits_0 = v >= (1, 2, 3, 5)

That was basically my first thought. But I didn’t want to presume that every element of the version is an integer. For instance, the current string in the “develop” branch of zlib has "1.2.8.1-motley".

----------

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


More information about the docs mailing list