]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129868)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Feb 2025 20:12:22 +0000 (21:12 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Feb 2025 20:12:22 +0000 (20:12 +0000)
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 <greg@krypto.org>
Doc/library/socketserver.rst

index e8d176edfcbda8dc123e51302f7c6d0b5c3f8ad9..72e9a2e10804a8b03e7d5cc166c3ea04f450b250 100644 (file)
@@ -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