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
2fedf704
Commit
2fedf704
authored
Jun 04, 2016
by
Kushal Das
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19234: Documents socket.fileno() returns -1 on failure
parent
410d89cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Doc/library/socket.rst
Doc/library/socket.rst
+2
-3
No files found.
Doc/library/socket.rst
View file @
2fedf704
...
@@ -927,14 +927,13 @@ to sockets.
...
@@ -927,14 +927,13 @@ to sockets.
.. method:: socket.fileno()
.. method:: socket.fileno()
Return the socket's file descriptor (a small integer)
. This is useful with
Return the socket's file descriptor (a small integer)
, or -1 on failure. This
:func:`select.select`.
is useful with
:func:`select.select`.
Under Windows the small integer returned by this method cannot be used where a
Under Windows the small integer returned by this method cannot be used where a
file descriptor can be used (such as :func:`os.fdopen`). Unix does not have
file descriptor can be used (such as :func:`os.fdopen`). Unix does not have
this limitation.
this limitation.
.. method:: socket.get_inheritable()
.. method:: socket.get_inheritable()
Get the :ref:`inheritable flag <fd_inheritance>` of the socket's file
Get the :ref:`inheritable flag <fd_inheritance>` of the socket's file
...
...
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