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 Dominik Czarnota, aldwinaldwin, christian.heimes, vstinner
Date 2019-07-05.12:52:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562331129.58.0.859457166787.issue37495@roundup.psfhosted.org>
In-reply-to
Content
> inet_pton() requires an address family. Should we iterate on all supported address families until one works?

No, that is not necessary. inet_aton() only accepts IPv4 addresses. Therefore an emulation with inet_pton() would look like this:

>>> import functools, socket
>>> inet_aton = functools.partial(socket.inet_pton, socket.AF_INET)
>>> inet_aton('127.0.0.1')
b'\x7f\x00\x00\x01'

> inet_pton() doesn't accept IPv4 "short format" like "127"

Yes, that might be a problem.
History
Date User Action Args
2019-07-05 12:52:09christian.heimessetrecipients: + christian.heimes, vstinner, aldwinaldwin, Dominik Czarnota
2019-07-05 12:52:09christian.heimessetmessageid: <1562331129.58.0.859457166787.issue37495@roundup.psfhosted.org>
2019-07-05 12:52:09christian.heimeslinkissue37495 messages
2019-07-05 12:52:09christian.heimescreate