bug in socket.py in pypy3-5.8_beta

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug in socket.py in pypy3-5.8_beta

zlists
(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
_______________________________________________
pypy-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/pypy-dev
Reply | Threaded
Open this post in threaded view
|

Re: bug in socket.py in pypy3-5.8_beta

Armin Rigo-2
Hi Jim,

On 13 November 2017 at 21:20,  <[hidden email]> 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.
_______________________________________________
pypy-dev mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/pypy-dev