[Python-checkins] r72286 - python/branches/py3k/Doc/library/ipaddr.rst

gregory.p.smith python-checkins at python.org
Mon May 4 21:34:45 CEST 2009


Author: gregory.p.smith
Date: Mon May  4 21:34:45 2009
New Revision: 72286

Log:
documentation clarification.  mention bytes.


Modified:
   python/branches/py3k/Doc/library/ipaddr.rst

Modified: python/branches/py3k/Doc/library/ipaddr.rst
==============================================================================
--- python/branches/py3k/Doc/library/ipaddr.rst	(original)
+++ python/branches/py3k/Doc/library/ipaddr.rst	Mon May  4 21:34:45 2009
@@ -21,9 +21,10 @@
    Take an IP string or int and return an object of the correct type.  Returns
    an :class:`IPv4` or :class:`IPv6` object.
 
-   The *ipaddr* parameter must be a string or integer representing the IP
-   address.  Either IPv4 or IPv6 addresses may be supplied.  Integers less than
-   2**32 will be considered to be IPv4.
+   The *ipaddr* parameter must be a string, bytes or integer representing the
+   IP address in ascii, network byte order or as a number respectively.  Either
+   IPv4 or IPv6 addresses may be supplied.  Integers less than 2**32 will be
+   considered to be IPv4.
 
    Raises :exc:`ValueError` if the *ipaddr* passed is not either an IPv4 or an
    IPv6 address.


More information about the Python-checkins mailing list