From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:13:40 +0000 (+0100) Subject: [3.12] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129869) X-Git-Tag: v3.12.10~232 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d42eba880e55c6d5508fe350b7a1c3dbc334f9b6;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129869) gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) mention AF_INET6 and IPv6 in socketserver docs. (cherry picked from commit 5ce70ad129d2e34a09f8ae6ee0542f4f996fb8ec) Co-authored-by: Gregory P. Smith --- diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index e8d176edfcbd..72e9a2e10804 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -260,8 +260,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