This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, seahoh
Date 2020-07-01.12:29:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593606598.39.0.222201715713.issue41169@roundup.psfhosted.org>
In-reply-to
Content
The behavior of sockets depends on platform and implementation details of OS and libc. Binding to ('[::]', 888) does not work for me on Linux. It might work on other problems. The majority of functions and methods in the socket module are thin wrappers around low-level OS features. 

>>> import socket
>>> import sys
>>> sys.version
'3.8.3 (default, May 29 2020, 00:00:00) \n[GCC 10.1.1 20200507 (Red Hat 10.1.1-1)]'
>>> sys.platform
'linux'
>>> s = socket.socket(socket.AF_INET6)
>>> s.bind(('[::]', 888))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -2] Name or service not known
History
Date User Action Args
2020-07-01 12:29:58christian.heimessetrecipients: + christian.heimes, seahoh
2020-07-01 12:29:58christian.heimessetmessageid: <1593606598.39.0.222201715713.issue41169@roundup.psfhosted.org>
2020-07-01 12:29:58christian.heimeslinkissue41169 messages
2020-07-01 12:29:58christian.heimescreate