This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients
Date 2003-04-19.17:28:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=366566

Based on the discussion, I've uploaded a new version of the
patch.  This one does the following:

if HAVE_INET_PTON is defined, has_ipv6 is added to the
socket module as True, socket_inet_pton and socket_inet_ntop
are defined and added to the module, and use the underlying
functions to perform the work, only AF_INET and AF_INET6 are
supported and where appropriate, input lengths are checked
against in_addr and in6_addr.

Otherwise, has_ipv6 is added to the socket module as False
and no other changes are made.

No checks against IPV6_ENABLED are made, because AF_INET6 is
always defined and only the platform functions are used to
handle values passed to the functions.

The patch also updates libsocket.tex, ACKS, NEWS, the
socket.py module docstring, and adds tests for inet_pton,
inet_ntop, inet_ntoa, and inet_aton to test_socket.

Guido, I'm assigning this to you as per your suggestions on
python-dev, and because Neal has told me in private
correspondance that he doesn't think he'll have a chance to
get to it before 2.3b1 comes out.
History
Date User Action Args
2007-08-23 15:19:11adminlinkissue658327 messages
2007-08-23 15:19:11admincreate