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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5784>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to