Patch by Jp Calderone:

- The socket module now provides the functions inet_pton and inet_ntop
  for converting between string and packed representation of IP addresses.
  See SF patch #658327.

This still needs a bit of work in the doc area, because it is not
available on all platforms (especially not on Windows).
diff --git a/Lib/socket.py b/Lib/socket.py
index cb0181b..12f3c05 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -30,6 +30,7 @@
 
 SocketType -- type object for socket objects
 error -- exception raised for I/O errors
+has_ipv6 -- boolean value indicating if IPv6 is supported
 
 Integer constants: