summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo <pablogsal@gmail.com>2023-04-05 11:20:30 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2023-04-05 11:20:30 (GMT)
commit8d4c9e5b8160b5b4a84c058a4bbcb6a0249af3e5 (patch)
treec1982c23dda1b72fc6d3951dd772ecce1d99d90d
parent20f4222fe310803cd5ea8cc4dff0f7f2826f7f09 (diff)
parentd76a5c6f7b1caf55c2162fd66bcdb9d8dd890005 (diff)
downloadcpython-8d4c9e5b8160b5b4a84c058a4bbcb6a0249af3e5.zip
cpython-8d4c9e5b8160b5b4a84c058a4bbcb6a0249af3e5.tar.gz
cpython-8d4c9e5b8160b5b4a84c058a4bbcb6a0249af3e5.tar.bz2
Merge remote-tracking branch 'upstream/3.10' into 3.10
-rw-r--r--Doc/library/socket.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 6fb6d5f..cd0d2ce 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1596,7 +1596,7 @@ to sockets.
much data, if any, was successfully sent.
.. versionchanged:: 3.5
- The socket timeout is no more reset each time data is sent successfully.
+ The socket timeout is no longer reset each time data is sent successfully.
The socket timeout is now the maximum total duration to send all data.
.. versionchanged:: 3.5
@@ -1814,8 +1814,8 @@ can be changed by calling :func:`setdefaulttimeout`.
* In *non-blocking mode*, operations fail (with an error that is unfortunately
system-dependent) if they cannot be completed immediately: functions from the
- :mod:`select` can be used to know when and whether a socket is available for
- reading or writing.
+ :mod:`select` module can be used to know when and whether a socket is available
+ for reading or writing.
* In *timeout mode*, operations fail if they cannot be completed within the
timeout specified for the socket (they raise a :exc:`timeout` exception)
@@ -2004,7 +2004,7 @@ manager protocol instead, open a socket with::
socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the socket, you
-can use the :meth:`socket.send`, and the :meth:`socket.recv` operations (and
+can use the :meth:`socket.send` and :meth:`socket.recv` operations (and
their counterparts) on the socket object as usual.
This last example might require special privileges::