[Python-checkins] r72292 - python/trunk/Doc/library/socket.rst

georg.brandl python-checkins at python.org
Mon May 4 22:49:17 CEST 2009


Author: georg.brandl
Date: Mon May  4 22:49:17 2009
New Revision: 72292

Log:
#5916, 5917: small socket doc improvements.

Modified:
   python/trunk/Doc/library/socket.rst

Modified: python/trunk/Doc/library/socket.rst
==============================================================================
--- python/trunk/Doc/library/socket.rst	(original)
+++ python/trunk/Doc/library/socket.rst	Mon May  4 22:49:17 2009
@@ -405,7 +405,7 @@
    :exc:`socket.error` will be raised. Note that exactly what is valid depends on
    the underlying C implementation of :cfunc:`inet_aton`.
 
-   :func:`inet_aton` does not support IPv6, and :func:`getnameinfo` should be used
+   :func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used
    instead for IPv4/v6 dual stack support.
 
 
@@ -419,7 +419,7 @@
 
    If the string passed to this function is not exactly 4 bytes in length,
    :exc:`socket.error` will be raised. :func:`inet_ntoa` does not support IPv6, and
-   :func:`getnameinfo` should be used instead for IPv4/v6 dual stack support.
+   :func:`inet_ntop` should be used instead for IPv4/v6 dual stack support.
 
 
 .. function:: inet_pton(address_family, ip_string)
@@ -437,6 +437,11 @@
 
    Availability: Unix (maybe not all platforms).
 
+   .. seealso::
+
+      :func:`ipaddr.BaseIP.packed`
+         Platform-independent conversion to a packed, binary format.
+
    .. versionadded:: 2.3
 
 


More information about the Python-checkins mailing list