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.

classification
Title: Wrong function referenced in documentation of socket.inet_aton
Type: behavior Stage:
Components: Documentation Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, phihag
Priority: normal Keywords: patch

Created on 2009-05-03 22:03 by phihag, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
aton-doc.diff phihag, 2009-05-03 22:03 Patch against trunk@72256
Messages (2)
msg87076 - (view) Author: Philipp Hagemeister (phihag) * Date: 2009-05-03 22:03
From the documentation of socket.inet_aton (and socket.inet_ntoa):

"inet_aton() does not support IPv6, and getnameinfo() should be used
instead for IPv4/v6 dual stack support."

socket.getnameinfo can not replace inet_aton/inet_ntoa at all. However,
inet_pton and inet_ntop can (and do support IPv6). Therefore, the
attached patch changes the getnameinfo references to inet_pton and
inet_ntop.
msg87171 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-05-04 20:49
Thanks, applied in r72292.
History
Date User Action Args
2022-04-11 14:56:48adminsetgithub: 50166
2009-05-04 20:49:27georg.brandlsetstatus: open -> closed
resolution: accepted
messages: + msg87171
2009-05-03 22:03:17phihagcreate