a string representing the canonical name of the *host* if
:const:`AI_CANONNAME` is part of the *flags* argument; else *canonname*
will be empty. *sockaddr* is a tuple describing a socket address, whose
- format depends on the returned *family* (a ``(address, port)`` 2-tuple for
- :const:`AF_INET`, a ``(address, port, flowinfo, scope_id)`` 4-tuple for
- :const:`AF_INET6`), and is meant to be passed to the :meth:`socket.connect`
- method.
+ format depends on the returned *family* and flags Python was compiled with,
+ and is meant to be passed to the :meth:`socket.connect` method.
+
+ *sockaddr* can be one of the following:
+
+ * a ``(address, port)`` 2-tuple for :const:`AF_INET`
+ * a ``(address, port, flowinfo, scope_id)`` 4-tuple for :const:`AF_INET6` if
+ Python was compiled with ``--enable-ipv6`` (the default)
+ * a 2-tuple containing raw data for :const:`AF_INET6` if Python was
+ compiled with ``--disable-ipv6``
.. note::