@@ -78,15 +78,15 @@ created. Socket addresses are represented as follows:
78
78
Python programs.
79
79
80
80
- 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 ``
82
82
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
85
85
in manipulating scoped IPv6 addresses.
86
86
87
87
.. 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
90
90
be safely omitted (recommended).
91
91
92
92
- :const: `AF_NETLINK ` sockets are represented as pairs ``(pid, groups) ``.
@@ -757,7 +757,7 @@ The :mod:`socket` module also offers various network-related services:
757
757
758
758
.. versionchanged :: 3.7
759
759
for IPv6 multicast addresses, string representing an address will not
760
- contain ``%scope `` part.
760
+ contain ``%scope_id `` part.
761
761
762
762
.. function :: getfqdn([name])
763
763
@@ -825,8 +825,8 @@ The :mod:`socket` module also offers various network-related services:
825
825
or numeric address representation in *host *. Similarly, *port * can contain a
826
826
string port name or a numeric port number.
827
827
828
- For IPv6 addresses, ``%scope `` is appended to the host part if *sockaddr *
829
- contains meaningful *scopeid *. Usually this happens for multicast addresses.
828
+ For IPv6 addresses, ``%scope_id `` is appended to the host part if *sockaddr *
829
+ contains meaningful *scope_id *. Usually this happens for multicast addresses.
830
830
831
831
For more information about *flags * you can consult :manpage: `getnameinfo(3)`.
832
832
@@ -1352,7 +1352,7 @@ to sockets.
1352
1352
1353
1353
.. versionchanged :: 3.7
1354
1354
For multicast IPv6 address, first item of *address * does not contain
1355
- ``%scope `` part anymore. In order to get full IPv6 address use
1355
+ ``%scope_id `` part anymore. In order to get full IPv6 address use
1356
1356
:func: `getnameinfo `.
1357
1357
1358
1358
.. method :: socket.recvmsg(bufsize[, ancbufsize[, flags]])
0 commit comments