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, vanrein
Date 2020-12-11.14:21:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607696471.39.0.76271196857.issue42620@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2020-12-11 14:21:11christian.heimessetrecipients: + christian.heimes, vanrein
2020-12-11 14:21:11christian.heimessetmessageid: <1607696471.39.0.76271196857.issue42620@roundup.psfhosted.org>
2020-12-11 14:21:11christian.heimeslinkissue42620 messages
2020-12-11 14:21:11christian.heimescreate