]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add descriptions of {get,set}defaulttimeout.
authorSkip Montanaro <skip@pobox.com>
Thu, 20 Mar 2003 17:58:12 +0000 (17:58 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 20 Mar 2003 17:58:12 +0000 (17:58 +0000)
Doc/lib/libsocket.tex

index 5ca0afc50fd2b002559629ad8bf788cff7d99c27..4febf220c61839c46676120f77a46d48ed110beb 100644 (file)
@@ -349,6 +349,20 @@ length, \exception{socket.error} will be raised.
 support.
 \end{funcdesc}
 
+\begin{funcdesc}{getdefaulttimeout}{}
+Return the default timeout in floating seconds for new socket objects.
+A value of \code{None} indicates that new socket objects have no timeout.
+When the socket module is first imported, the default is \code{None}.
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{setdefaulttimeout}{timeout}
+Set the default timeout in floating seconds for new socket objects.
+A value of \code{None} indicates that new socket objects have no timeout.
+When the socket module is first imported, the default is \code{None}.
+\versionadded{2.3}
+\end{funcdesc}
+
 \begin{datadesc}{SocketType}
 This is a Python type object that represents the socket object type.
 It is the same as \code{type(socket(...))}.