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

Skip to content

Commit 5f25972

Browse files
committed
Merged revisions 72292 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r72292 | georg.brandl | 2009-05-04 22:49:17 +0200 (Mo, 04 Mai 2009) | 1 line python#5916, 5917: small socket doc improvements. ........
1 parent 9460648 commit 5f25972

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Doc/library/socket.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ The module :mod:`socket` exports the following constants and functions:
385385
:exc:`socket.error` will be raised. Note that exactly what is valid depends on
386386
the underlying C implementation of :cfunc:`inet_aton`.
387387

388-
:func:`inet_aton` does not support IPv6, and :func:`getnameinfo` should be used
388+
:func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used
389389
instead for IPv4/v6 dual stack support.
390390

391391

@@ -400,7 +400,7 @@ The module :mod:`socket` exports the following constants and functions:
400400

401401
If the byte sequence passed to this function is not exactly 4 bytes in
402402
length, :exc:`socket.error` will be raised. :func:`inet_ntoa` does not
403-
support IPv6, and :func:`getnameinfo` should be used instead for IPv4/v6 dual
403+
support IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual
404404
stack support.
405405

406406

@@ -419,6 +419,11 @@ The module :mod:`socket` exports the following constants and functions:
419419

420420
Availability: Unix (maybe not all platforms).
421421

422+
.. seealso::
423+
424+
:func:`ipaddr.BaseIP.packed`
425+
Platform-independent conversion to a packed, binary format.
426+
422427

423428
.. function:: inet_ntop(address_family, packed_ip)
424429

0 commit comments

Comments
 (0)