From: Gregory P. Smith Date: Sat, 8 Feb 2025 20:06:28 +0000 (-0800) Subject: gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (#129866) X-Git-Tag: v3.14.0a5~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ce70ad129d2e34a09f8ae6ee0542f4f996fb8ec;p=thirdparty%2FPython%2Fcpython.git gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (#129866) mention AF_INET6 and IPv6 in socketserver docs. --- diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index a01ed17f9ec6..59cfa136a3b7 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -266,8 +266,11 @@ Server Objects .. attribute:: address_family - The family of protocols to which the server's socket belongs. - Common examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`. + The family of protocols to which the server's socket belongs. Common + examples are :const:`socket.AF_INET`, :const:`socket.AF_INET6`, and + :const:`socket.AF_UNIX`. Subclass the TCP or UDP server classes in this + module with class attribute ``address_family = AF_INET6`` set if you + want IPv6 server classes. .. attribute:: RequestHandlerClass