mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
#3852: fix some select.kqueue and kevent docs.
This commit is contained in:
parent
e1d9dca794
commit
2f3bd8364a
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ The module defines the following:
|
|||
.. versionadded:: 2.6
|
||||
|
||||
|
||||
.. function:: kqueue(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)
|
||||
.. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_ADD, fflags=0, data=0, udata=0)
|
||||
|
||||
(Only supported on BSD.) Returns a kernel event object object; see section
|
||||
:ref:`kevent-objects` below for the methods supported by kqueue objects.
|
||||
|
@ -272,12 +272,12 @@ Kqueue Objects
|
|||
Return the file descriptor number of the control fd.
|
||||
|
||||
|
||||
.. method:: epoll.fromfd(fd)
|
||||
.. method:: kqueue.fromfd(fd)
|
||||
|
||||
Create a kqueue object from a given file descriptor.
|
||||
|
||||
|
||||
.. method:: control(changelist, max_events=0[, timeout=None]) -> eventlist
|
||||
.. method:: kqueue.control(changelist, max_events[, timeout=None]) -> eventlist
|
||||
|
||||
Low level interface to kevent
|
||||
|
||||
|
|
|
@ -1607,7 +1607,7 @@ kqueue_queue_control(kqueue_queue_Object *self, PyObject *args)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(kqueue_queue_control_doc,
|
||||
"control(changelist, max_events=0[, timeout=None]) -> eventlist\n\
|
||||
"control(changelist, max_events[, timeout=None]) -> eventlist\n\
|
||||
\n\
|
||||
Calls the kernel kevent function.\n\
|
||||
- changelist must be a list of kevent objects describing the changes\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue