From: Kushal Das Date: Sat, 4 Jun 2016 17:20:12 +0000 (-0700) Subject: Issue #19234: Documents socket.fileno() returns -1 on failure X-Git-Tag: v3.5.2rc1~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89beb27061178e3cdb2d249b3719e4f35234db48;p=thirdparty%2FPython%2Fcpython.git Issue #19234: Documents socket.fileno() returns -1 on failure --- diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 8cf4dbae0513..3aa1b138ca81 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -927,14 +927,13 @@ to sockets. .. method:: socket.fileno() - Return the socket's file descriptor (a small integer). This is useful with - :func:`select.select`. + Return the socket's file descriptor (a small integer), or -1 on failure. This + is useful with :func:`select.select`. 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 this limitation. - .. method:: socket.get_inheritable() Get the :ref:`inheritable flag ` of the socket's file