Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5123ef

Browse files
committed
Merged revisions 73217 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r73217 | georg.brandl | 2009-06-04 12:27:21 +0200 (Do, 04 Jun 2009) | 1 line #6175: document that inet_aton supports alternate input formats with less than three dots. ........
1 parent ec80688 commit f5123ef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/socket.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ The module :mod:`socket` exports the following constants and functions:
381381
library and needs objects of type :ctype:`struct in_addr`, which is the C type
382382
for the 32-bit packed binary this function returns.
383383

384+
:func:`inet_aton` also accepts strings with less than three dots; see the
385+
Unix manual page :manpage:`inet(3)` for details.
386+
384387
If the IPv4 address string passed to this function is invalid,
385388
:exc:`socket.error` will be raised. Note that exactly what is valid depends on
386389
the underlying C implementation of :cfunc:`inet_aton`.

0 commit comments

Comments
 (0)