bug in socket.py in pypy3-5.8_beta
(I'm sure somewhere there is a proper place to report a bug, but I gave up after hunting for a few minutes.) socket.py has the code import platform kern_version = tuple(map(int, platform.release().partition('-')[0].split('.'))) which is buggy, because the kernel version is not necessarily completely numeric. Check out CONFIG_LOCALVERSION in any kernel config. Thanks. Jim
Hi Jim, On 13 November 2017 at 21:20, <zlists@ns.sympatico.ca> wrote:
(I'm sure somewhere there is a proper place to report a bug, but I gave up after hunting for a few minutes.)
socket.py has the code
import platform kern_version = tuple(map(int, platform.release().partition('-')[0].split('.')))
Grepping for ``platform.release``, I can only find similar code in ``lib-python/3/test/support/__init__.py``. I'm not sure that's the place you mean. If it really is, then it comes straight from CPython, and the corresponding problem should be reported to CPython instead at bugs.python.org (after checking that it still exists in the latest CPython release). A bientôt, Armin.
participants (2)
-
Armin Rigo
-
zlists@ns.sympatico.ca