diff options
author | Kushal Das <kushaldas@gmail.com> | 2016-06-04 17:20:12 (GMT) |
---|---|---|
committer | Kushal Das <kushaldas@gmail.com> | 2016-06-04 17:20:12 (GMT) |
commit | 89beb27061178e3cdb2d249b3719e4f35234db48 (patch) | |
tree | 47a33319d3cc03a11060be1930bf9ac9a0ffbf36 /Doc | |
parent | 32db43867c5762874cdd1ff0ac71c9bf5640f5b8 (diff) | |
download | cpython-89beb27061178e3cdb2d249b3719e4f35234db48.zip cpython-89beb27061178e3cdb2d249b3719e4f35234db48.tar.gz cpython-89beb27061178e3cdb2d249b3719e4f35234db48.tar.bz2 |
Issue #19234: Documents socket.fileno() returns -1 on failure
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/socket.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 8cf4dba..3aa1b13 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 <fd_inheritance>` of the socket's file |