]> granicus.if.org Git - python/commitdiff
#6175: document that inet_aton supports alternate input formats with less than three...
authorGeorg Brandl <georg@python.org>
Thu, 4 Jun 2009 10:27:21 +0000 (10:27 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 4 Jun 2009 10:27:21 +0000 (10:27 +0000)
Doc/library/socket.rst

index d1b107ecc63253f9c6b15cbbd55b98929cf3ff89..97fe268a55bdd5e50ef5149cd10d872b93132ef4 100644 (file)
@@ -401,6 +401,9 @@ The module :mod:`socket` exports the following constants and functions:
    library and needs objects of type :ctype:`struct in_addr`, which is the C type
    for the 32-bit packed binary this function returns.
 
+   :func:`inet_aton` also accepts strings with less than three dots; see the
+   Unix manual page :manpage:`inet(3)` for details.
+
    If the IPv4 address string passed to this function is invalid,
    :exc:`socket.error` will be raised. Note that exactly what is valid depends on
    the underlying C implementation of :cfunc:`inet_aton`.