Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doc/library/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ The module defines the following:
library, and does not handle file descriptors that don't originate from
WinSock.

.. note::

:c:func:`!select` may not work with file objects that
internally buffer data because select is only aware of data in the
file descriptor provided by the kernel. However, file-like-objects often
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
file descriptor provided by the kernel. However, file-like-objects often
file descriptor provided by the kernel. However, :term:`file-like objects <file object>` often

File-like object simply links to file object

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've made this change

contain a reference to a file descriptor via a :meth:`!fileno` method
which will work with select.

.. versionchanged:: 3.5
The function is now retried with a recomputed timeout when interrupted by
a signal, except if the signal handler raises an exception (see
Expand Down
Loading