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 vstinner
Recipients Dominik Czarnota, aldwinaldwin, christian.heimes, vstinner
Date 2019-07-05.13:06:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562331961.52.0.422800604102.issue37495@roundup.psfhosted.org>
In-reply-to
Content
Attached inet_aton_pton.py is a proof-of-concept which reimplements inet_aton() using inet_pton(). It supports a.b.c.d, a.b.c, a.b and a formats. I'm not sure which exception should be raised in case of parsing error.

socket.inet_aton() raises OSError"illegal IP address string passed to inet_aton") using C code:

    PyErr_SetString(PyExc_OSError,
                    "illegal IP address string passed to inet_aton");
History
Date User Action Args
2019-07-05 13:06:01vstinnersetrecipients: + vstinner, christian.heimes, aldwinaldwin, Dominik Czarnota
2019-07-05 13:06:01vstinnersetmessageid: <1562331961.52.0.422800604102.issue37495@roundup.psfhosted.org>
2019-07-05 13:06:01vstinnerlinkissue37495 messages
2019-07-05 13:06:01vstinnercreate