You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a string such as "5.6.7", inet_aton() returns
'\x05\x06\x00\x07'. In C (using libraries installed
with RedHat 7.2), the equivalent call returns 0,
indicating that the address is invalid.
I can't see the problem. First, 5.6.7 is really a valid
denotation of an IP number, and denotes the IP address
5.6.0.7, just like 10.13 denotes 10.0.0.13.
Furthermore, Python uses inet_addr on the C level, which
does not return a status; for the address given, it returns
exactly the same result that you see in Python.
Finally, I cannot reproduce inet_aton(3) returning an error:
on my installation (SuSE 8.1), it returns 1, indicating success.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: