diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/socket.rst | 2 | ||||
-rw-r--r-- | Doc/whatsnew/2.6.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 2f89758..5640919 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -803,7 +803,7 @@ sends traffic to the first one connected successfully. :: import socket import sys - HOST = '' # Symbolic name meaning the local host + HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port s = None for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI_PASSIVE): diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 9c4a877..8bd0c19 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -1692,7 +1692,7 @@ complete list of changes, or look through the CVS logs for all the details. ``permutations(iter[, r])`` returns all the permutations of length *r* of the iterable's elements. If *r* is not specified, it will default to the - number of elements produced by the iterable. + number of elements produced by the iterable. :: itertools.permutations([1,2,3,4], 2) -> [(1, 2), (1, 3), (1, 4), |