Message372751
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 |
|
Date |
User |
Action |
Args |
2020-07-01 12:29:58 | christian.heimes | set | recipients:
+ christian.heimes, seahoh |
2020-07-01 12:29:58 | christian.heimes | set | messageid: <1593606598.39.0.222201715713.issue41169@roundup.psfhosted.org> |
2020-07-01 12:29:58 | christian.heimes | link | issue41169 messages |
2020-07-01 12:29:58 | christian.heimes | create | |
|