bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595)

diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 44370fe..bfb315f 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -198,7 +198,7 @@
   family is represented as a ``(node, port)`` tuple where the *node* and *port*
   are non-negative integers.
 
-  .. versionadded:: 3.7
+  .. versionadded:: 3.8
 
 If you use a hostname in the *host* portion of IPv4/v6 socket address, the
 program may show a nondeterministic behavior, as Python uses the first address