Skip to content

bpo-34369: make kqueue.control() docs better reflect that timeout is positional-only #9499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
7 changes: 4 additions & 3 deletions Doc/library/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,14 @@ Kqueue Objects
Create a kqueue object from a given file descriptor.


.. method:: kqueue.control(changelist, max_events[, timeout=None]) -> eventlist
.. method:: kqueue.control(changelist, max_events[, timeout]) -> eventlist

Low level interface to kevent

- changelist must be an iterable of kevent object or ``None``
- changelist must be an iterable of kevent objects or ``None``
- max_events must be 0 or a positive integer
- timeout in seconds (floats possible)
- timeout in seconds (floats possible); the default is ``None``,
to wait forever

.. versionchanged:: 3.5
The function is now retried with a recomputed timeout when interrupted by
Expand Down