summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-03-20 17:58:12 (GMT)
committerSkip Montanaro <skip@pobox.com>2003-03-20 17:58:12 (GMT)
commit2a403e8a7eef38aa9b09f80750b94e48ed715574 (patch)
treed8b2099c2295d0f94c4cc6531a55caa9a9ed6bd5 /Doc
parent5c7b2487cd5cb89118c4cb60a09d38ece1552c68 (diff)
downloadcpython-2a403e8a7eef38aa9b09f80750b94e48ed715574.zip
cpython-2a403e8a7eef38aa9b09f80750b94e48ed715574.tar.gz
cpython-2a403e8a7eef38aa9b09f80750b94e48ed715574.tar.bz2
add descriptions of {get,set}defaulttimeout.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsocket.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index 5ca0afc..4febf22 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(...))}.