Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdbd84f

Browse files
committed
Add version info, and fix another typo and wording spotted by /F. I think this is what he meant. :-)
1 parent 1a06fb0 commit bdbd84f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/lib/libsocket.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,17 +520,19 @@ \subsection{Socket Objects \label{socket-objects}}
520520
\exception{error} exception if the timeout period \var{value} has
521521
elapsed before the operation has completed. Setting a timeout of
522522
\code{None} disables timeouts on socket operations.
523+
\versionadded{2.3}
523524
\end{methoddesc}
524525

525526
\begin{methoddesc}[socket]{gettimeout}{}
526527
Returns the timeout in floating seconds associated with socket
527528
operations. A timeout of \code{None} indicates that timeouts on
528529
socket operations are disabled.
530+
\versionadded{2.3}
529531
\end{methoddesc}
530532

531533
Some notes on the interaction between socket blocking and timeouts:
532-
socket blocking mode takes precedence over timeouts. If a socket if
533-
set to non-blocking mode, then timeouts set on sockets are not used.
534+
socket blocking mode takes precedence over timeouts. If a socket is
535+
set to non-blocking mode, then timeouts are not used.
534536
The timeout value associated with the socket can still be set using
535537
\method{settimeout()} and its value retrieved using
536538
\method{gettimeout()}, but the timeout is never enforced (an exception

0 commit comments

Comments
 (0)