Message382868
Good point. The address info depends on the address family, https://docs.python.org/3/library/socket.html#socket-families . I have updated the doc string:
>>> import socket
>>> print(socket.socket.getsockname.__doc__)
getsockname() -> address info
Return the address of the local endpoint. The format depends on the
address family. For IPv4 sockets, the address info is a pair
(hostaddr, port). |
|
Date |
User |
Action |
Args |
2020-12-11 14:21:11 | christian.heimes | set | recipients:
+ christian.heimes, vanrein |
2020-12-11 14:21:11 | christian.heimes | set | messageid: <1607696471.39.0.76271196857.issue42620@roundup.psfhosted.org> |
2020-12-11 14:21:11 | christian.heimes | link | issue42620 messages |
2020-12-11 14:21:11 | christian.heimes | create | |
|