Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2c351052
Commit
2c351052
authored
Aug 14, 2011
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12725: fix working. Patch by Ben Hayden.
parent
8ef4e074
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
Doc/ACKS.txt
Doc/ACKS.txt
+1
-0
Doc/library/socket.rst
Doc/library/socket.rst
+3
-3
Modules/socketmodule.c
Modules/socketmodule.c
+3
-3
No files found.
Doc/ACKS.txt
View file @
2c351052
...
...
@@ -77,6 +77,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Travis B. Hartwell
* Tim Hatch
* Janko Hauser
* Ben Hayden
* Thomas Heller
* Bernhard Herzog
* Magnus L. Hetland
...
...
Doc/library/socket.rst
View file @
2c351052
...
...
@@ -488,7 +488,7 @@ The module :mod:`socket` exports the following constants and functions:
.. 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``.
...
...
@@ -497,7 +497,7 @@ The module :mod:`socket` exports the following constants and functions:
.. function:: setdefaulttimeout(timeout)
Set the default timeout in
floating seconds
for new socket objects. A value of
Set 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``.
...
...
@@ -766,7 +766,7 @@ correspond to Unix system calls applicable to sockets.
.. method:: socket.gettimeout()
Return the timeout in
floating seconds
associated with socket operations, or
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`.
...
...
Modules/socketmodule.c
View file @
2c351052
...
...
@@ -1784,7 +1784,7 @@ sock_gettimeout(PySocketSockObject *s)
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."
);
...
...
@@ -4252,7 +4252,7 @@ socket_getdefaulttimeout(PyObject *self)
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."
);
...
...
@@ -4282,7 +4282,7 @@ socket_setdefaulttimeout(PyObject *self, PyObject *arg)
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."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment