Christian Heimes <li...@cheimes.de> added the comment:
I can reproduce the problem with 3.6 and even Python versions as old as 3.4: Python 3.4.10rc1+ (default, Jun 30 2020, 23:15:25) [GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> socket.inet_pton(socket.AF_INET6,'[::]') Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: illegal IP address string passed to inet_pton Python is just mapping inet_pton(3) return value 0 to an exception. It might be possible that your libc has changed behavior. ---------- nosy: +christian.heimes _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41169> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com