From: Skip Montanaro Date: Thu, 20 Mar 2003 17:58:12 +0000 (+0000) Subject: add descriptions of {get,set}defaulttimeout. X-Git-Tag: v2.3c1~1434 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a403e8a7eef38aa9b09f80750b94e48ed715574;p=thirdparty%2FPython%2Fcpython.git add descriptions of {get,set}defaulttimeout. --- diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 5ca0afc50fd2..4febf220c618 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -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(...))}.