Skip to content

Commit 56773cf

Browse files
committed
Mention that gethostbyaddr now also supports IDNA.
1 parent fc0275a commit 56773cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/test_socket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ def test_idna(self):
642642
socket.gethostbyname('испытание.python.org')
643643
socket.gethostbyname_ex('испытание.python.org')
644644
socket.getaddrinfo('испытание.python.org',0)
645+
socket.gethostbyaddr('испытание.python.org')
645646

646647
@unittest.skipUnless(thread, 'Threading required for this test.')
647648
class BasicTCPTest(SocketConnectedTest):

Misc/NEWS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Core and Builtins
6666
Extensions
6767
----------
6868

69-
- Issue #1027206: Support IDNA in gethostbyname, gethostbyname_ex and getaddrinfo.
69+
- Issue #1027206: Support IDNA in gethostbyname, gethostbyname_ex,
70+
getaddrinfo and gethostbyaddr.
7071

7172
- Issue #9214: Set operations on a KeysView or ItemsView in collections
7273
now correctly return a set. (Patch by Eli Bendersky.)

0 commit comments

Comments
 (0)