Skip to content

Commit

Permalink
Emend socket markup
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 29, 2023
1 parent 57f5b37 commit 2d09bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/whatsnew/2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ errors. If you absolutely must use 2.0 but can't fix your code, you can edit
Some of the functions in the :mod:`socket` module are still forgiving in this
way. For example, ``socket.connect( ('hostname', 25) )`` is the correct
form, passing a tuple representing an IP address, but ``socket.connect('hostname', 25)``
also works. :func:`socket.connect_ex` and :func:`socket.bind`
also works. :meth:`~socket.socket.connect_ex` and :meth:`~socket.socket.bind`
are similarly easy-going. 2.0alpha1 tightened these functions up, but because
the documentation actually used the erroneous multiple argument form, many
people wrote code which would break with the stricter checking. GvR backed out
Expand Down

0 comments on commit 2d09bca

Please sign in to comment.