diff options
author | Georg Brandl <georg@python.org> | 2009-06-04 10:27:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-06-04 10:27:21 (GMT) |
commit | 5000b3b8a7ccb4d457e4b27381fcdd6cf6c8349d (patch) | |
tree | 9f86d32ab8e0cbdaedd2b7441c65022fb8c56186 /Doc/library | |
parent | 4a20b1ad5124f1d480783263c26f8bc2a2d5fd3f (diff) | |
download | cpython-5000b3b8a7ccb4d457e4b27381fcdd6cf6c8349d.zip cpython-5000b3b8a7ccb4d457e4b27381fcdd6cf6c8349d.tar.gz cpython-5000b3b8a7ccb4d457e4b27381fcdd6cf6c8349d.tar.bz2 |
#6175: document that inet_aton supports alternate input formats with less than three dots.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/socket.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index d1b107e..97fe268 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -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`. |