]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (#129866)
authorGregory P. Smith <greg@krypto.org>
Sat, 8 Feb 2025 20:06:28 +0000 (12:06 -0800)
committerGitHub <noreply@github.com>
Sat, 8 Feb 2025 20:06:28 +0000 (12:06 -0800)
mention AF_INET6 and IPv6 in socketserver docs.

Doc/library/socketserver.rst

index a01ed17f9ec6d62cccf37a872b1340d36f917571..59cfa136a3b7da9a93441c2d7e99463d1c2054f8 100644 (file)
@@ -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