[New-bugs-announce] [issue5916] Wrong function referenced in documentation of socket.inet_aton

Philipp Hagemeister report at bugs.python.org
Mon May 4 00:03:18 CEST 2009

New submission from Philipp Hagemeister <phihag at phihag.de>:

>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

assignee: georg.brandl
components: Documentation
files: aton-doc.diff
keywords: patch
messages: 87076
nosy: georg.brandl, phihag
severity: normal
status: open
title: Wrong function referenced in documentation of socket.inet_aton
type: behavior
versions: Python 2.7, Python 3.1
Added file: http://bugs.python.org/file13858/aton-doc.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list