[Python-checkins] cpython (merge 3.2 -> default): #12725: merge with 3.2.
ezio.melotti
python-checkins at python.org
Sun Aug 14 07:30:06 CEST 2011
http://hg.python.org/cpython/rev/49e9e34da512
changeset: 71865:49e9e34da512
parent: 71862:0273d0734593
parent: 71864:ab3432a81c26
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sun Aug 14 08:29:49 2011 +0300
summary:
#12725: merge with 3.2.
files:
Doc/ACKS.txt | 1 +
Doc/library/socket.rst | 6 +++---
Modules/socketmodule.c | 6 +++---
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Doc/ACKS.txt b/Doc/ACKS.txt
--- a/Doc/ACKS.txt
+++ b/Doc/ACKS.txt
@@ -79,6 +79,7 @@
* Travis B. Hartwell
* Tim Hatch
* Janko Hauser
+ * Ben Hayden
* Thomas Heller
* Bernhard Herzog
* Magnus L. Hetland
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -513,14 +513,14 @@
.. function:: getdefaulttimeout()
- Return the default timeout in floating seconds for new socket objects. A value
+ Return the default timeout in seconds (float) for new socket objects. A value
of ``None`` indicates that new socket objects have no timeout. When the socket
module is first imported, the default is ``None``.
.. function:: setdefaulttimeout(timeout)
- Set the default timeout in floating seconds for new socket objects. When
+ Set the default timeout in seconds (float) for new socket objects. When
the socket module is first imported, the default is ``None``. See
:meth:`~socket.settimeout` for possible values and their respective
meanings.
@@ -675,7 +675,7 @@
.. method:: socket.gettimeout()
- Return the timeout in floating seconds associated with socket operations,
+ Return the timeout in seconds (float) associated with socket operations,
or ``None`` if no timeout is set. This reflects the last call to
:meth:`setblocking` or :meth:`settimeout`.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1822,7 +1822,7 @@
PyDoc_STRVAR(gettimeout_doc,
"gettimeout() -> timeout\n\
\n\
-Returns the timeout in floating seconds associated with socket \n\
+Returns the timeout in seconds (float) associated with socket \n\
operations. A timeout of None indicates that timeouts on socket \n\
operations are disabled.");
@@ -4247,7 +4247,7 @@
PyDoc_STRVAR(getdefaulttimeout_doc,
"getdefaulttimeout() -> timeout\n\
\n\
-Returns the default timeout in floating seconds for new socket objects.\n\
+Returns the default timeout in seconds (float) for new socket objects.\n\
A value of None indicates that new socket objects have no timeout.\n\
When the socket module is first imported, the default is None.");
@@ -4277,7 +4277,7 @@
PyDoc_STRVAR(setdefaulttimeout_doc,
"setdefaulttimeout(timeout)\n\
\n\
-Set the default timeout in floating seconds for new socket objects.\n\
+Set the default timeout in seconds (float) for new socket objects.\n\
A value of None indicates that new socket objects have no timeout.\n\
When the socket module is first imported, the default is None.");
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list