@@ -78,15 +78,15 @@ created. Socket addresses are represented as follows:
7878 Python programs.
7979
8080- For :const: `AF_INET6 ` address family, a four-tuple ``(host, port, flowinfo,
81- scopeid ) `` is used, where *flowinfo * and *scopeid * represent the ``sin6_flowinfo ``
81+ scope_id ) `` is used, where *flowinfo * and *scope_id * represent the ``sin6_flowinfo ``
8282 and ``sin6_scope_id `` members in :const: `struct sockaddr_in6 ` in C. For
83- :mod: `socket ` module methods, *flowinfo * and *scopeid * can be omitted just for
84- backward compatibility. Note, however, omission of *scopeid * can cause problems
83+ :mod: `socket ` module methods, *flowinfo * and *scope_id * can be omitted just for
84+ backward compatibility. Note, however, omission of *scope_id * can cause problems
8585 in manipulating scoped IPv6 addresses.
8686
8787 .. versionchanged :: 3.7
88- For multicast addresses (with *scopeid * meaningful) *address * may not contain
89- ``%scope `` (or ``zone id ``) part. This information is superfluous and may
88+ For multicast addresses (with *scope_id * meaningful) *address * may not contain
89+ ``%scope_id `` (or ``zone id ``) part. This information is superfluous and may
9090 be safely omitted (recommended).
9191
9292- :const: `AF_NETLINK ` sockets are represented as pairs ``(pid, groups) ``.
@@ -738,7 +738,7 @@ The :mod:`socket` module also offers various network-related services:
738738 :const: `AI_CANONNAME ` is part of the *flags * argument; else *canonname *
739739 will be empty. *sockaddr * is a tuple describing a socket address, whose
740740 format depends on the returned *family * (a ``(address, port) `` 2-tuple for
741- :const: `AF_INET `, a ``(address, port, flow info, scope id ) `` 4-tuple for
741+ :const: `AF_INET `, a ``(address, port, flowinfo, scope_id ) `` 4-tuple for
742742 :const: `AF_INET6 `), and is meant to be passed to the :meth: `socket.connect `
743743 method.
744744
@@ -759,7 +759,7 @@ The :mod:`socket` module also offers various network-related services:
759759
760760 .. versionchanged :: 3.7
761761 for IPv6 multicast addresses, string representing an address will not
762- contain ``%scope `` part.
762+ contain ``%scope_id `` part.
763763
764764.. function :: getfqdn([name])
765765
@@ -827,8 +827,8 @@ The :mod:`socket` module also offers various network-related services:
827827 or numeric address representation in *host *. Similarly, *port * can contain a
828828 string port name or a numeric port number.
829829
830- For IPv6 addresses, ``%scope `` is appended to the host part if *sockaddr *
831- contains meaningful *scopeid *. Usually this happens for multicast addresses.
830+ For IPv6 addresses, ``%scope_id `` is appended to the host part if *sockaddr *
831+ contains meaningful *scope_id *. Usually this happens for multicast addresses.
832832
833833 For more information about *flags * you can consult :manpage: `getnameinfo(3)`.
834834
@@ -1354,7 +1354,7 @@ to sockets.
13541354
13551355 .. versionchanged :: 3.7
13561356 For multicast IPv6 address, first item of *address * does not contain
1357- ``%scope `` part anymore. In order to get full IPv6 address use
1357+ ``%scope_id `` part anymore. In order to get full IPv6 address use
13581358 :func: `getnameinfo `.
13591359
13601360.. method :: socket.recvmsg(bufsize[, ancbufsize[, flags]])
0 commit comments