Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32db438 commit 89beb27Copy full SHA for 89beb27
1 file changed
Doc/library/socket.rst
@@ -927,14 +927,13 @@ to sockets.
927
928
.. method:: socket.fileno()
929
930
- Return the socket's file descriptor (a small integer). This is useful with
931
- :func:`select.select`.
+ Return the socket's file descriptor (a small integer), or -1 on failure. This
+ is useful with :func:`select.select`.
932
933
Under Windows the small integer returned by this method cannot be used where a
934
file descriptor can be used (such as :func:`os.fdopen`). Unix does not have
935
this limitation.
936
937
-
938
.. method:: socket.get_inheritable()
939
940
Get the :ref:`inheritable flag <fd_inheritance>` of the socket's file
0 commit comments