Skip to content
Open
Changes from all commits
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
10 changes: 6 additions & 4 deletions Doc/library/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ The module defines the following:

.. function:: kqueue()

(Only supported on BSD.) Returns a kernel queue object; see section
:ref:`kqueue-objects` below for the methods supported by kqueue objects.
(Only supported on BSD and macOS.) Returns a kernel queue object;
Copy link
Member

Choose a reason for hiding this comment

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

Should not we use the availability directive instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but I don't know if this should happen in another PR?

Copy link
Member

@picnixz picnixz Dec 30, 2025

Choose a reason for hiding this comment

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

Considering there are many other places to change, let's do it in a separate PR (and not all occurrences use the same availability note)

see section :ref:`kqueue-objects` below for the methods supported by
kqueue objects.

The new file descriptor is :ref:`non-inheritable <fd_inheritance>`.

Expand All @@ -111,8 +112,9 @@ The module defines the following:

.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0)

(Only supported on BSD.) Returns a kernel event object; see section
:ref:`kevent-objects` below for the methods supported by kevent objects.
(Only supported on BSD and macOS.) Returns a kernel event object;
see section :ref:`kevent-objects` below for the methods supported by
kevent objects.


.. function:: select(rlist, wlist, xlist, timeout=None)
Expand Down
Loading