diff options
author | Коренберг Марк <socketpair@gmail.com> | 2018-01-27 22:20:50 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2018-01-27 22:20:50 (GMT) |
commit | 47c0b1f7d4115e6f15e6776c1f91d28e7d96fe0c (patch) | |
tree | 1de9f5ad4533c4b648c2744ab3bcca392bd657e5 /Doc | |
parent | ee72ac0683e685b134f67cb0c6612c664ecadb65 (diff) | |
download | cpython-47c0b1f7d4115e6f15e6776c1f91d28e7d96fe0c.zip cpython-47c0b1f7d4115e6f15e6776c1f91d28e7d96fe0c.tar.gz cpython-47c0b1f7d4115e6f15e6776c1f91d28e7d96fe0c.tar.bz2 |
bpo-32221: makeipaddr(): remove interface part + speedup (GH-4724)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/socket.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 7edd4ba..777710f 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -77,6 +77,11 @@ created. Socket addresses are represented as follows: backward compatibility. Note, however, omission of *scopeid* can cause problems in manipulating scoped IPv6 addresses. + .. versionchanged:: 3.7 + For multicast addresses (with *scopeid* meaningful) *address* may not contain + ``%scope`` (or ``zone id``) part. This information is superfluous and may + be safely omitted (recommended). + - :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``. - Linux-only support for TIPC is available using the :const:`AF_TIPC` @@ -630,6 +635,10 @@ The :mod:`socket` module also offers various network-related services: .. versionchanged:: 3.2 parameters can now be passed using keyword arguments. + .. versionchanged:: 3.7 + for IPv6 multicast addresses, string representing an address will not + contain ``%scope`` part. + .. function:: getfqdn([name]) Return a fully qualified domain name for *name*. If *name* is omitted or empty, @@ -688,6 +697,8 @@ The :mod:`socket` module also offers various network-related services: or numeric address representation in *host*. Similarly, *port* can contain a string port name or a numeric port number. + For IPv6 addresses, ``%scope`` is appended to the host part if *sockaddr* + contains meaningful *scopeid*. Usually this happens for multicast addresses. .. function:: getprotobyname(protocolname) @@ -1178,6 +1189,10 @@ to sockets. an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). + .. versionchanged:: 3.7 + For multicast IPv6 address, first item of *address* does not contain + ``%scope`` part anymore. In order to get full IPv6 address use + :func:`getnameinfo`. .. method:: socket.recvmsg(bufsize[, ancbufsize[, flags]]) |