Message347341
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"); |
|
Date |
User |
Action |
Args |
2019-07-05 13:06:01 | vstinner | set | recipients:
+ vstinner, christian.heimes, aldwinaldwin, Dominik Czarnota |
2019-07-05 13:06:01 | vstinner | set | messageid: <1562331961.52.0.422800604102.issue37495@roundup.psfhosted.org> |
2019-07-05 13:06:01 | vstinner | link | issue37495 messages |
2019-07-05 13:06:01 | vstinner | create | |
|