[Python-checkins] r66523 - in python/trunk: Doc/library/select.rst Modules/selectmodule.c

georg.brandl python-checkins at python.org
Sun Sep 21 09:14:44 CEST 2008


Author: georg.brandl
Date: Sun Sep 21 09:14:44 2008
New Revision: 66523
Log:
#3852: fix some select.kqueue and kevent docs.
Modified:
 python/trunk/Doc/library/select.rst
 python/trunk/Modules/selectmodule.c
Modified: python/trunk/Doc/library/select.rst
==============================================================================
--- python/trunk/Doc/library/select.rst	(original)
+++ python/trunk/Doc/library/select.rst	Sun Sep 21 09:14:44 2008
@@ -50,7 +50,7 @@
 .. 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 @@
 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
 
Modified: python/trunk/Modules/selectmodule.c
==============================================================================
--- python/trunk/Modules/selectmodule.c	(original)
+++ python/trunk/Modules/selectmodule.c	Sun Sep 21 09:14:44 2008
@@ -1607,7 +1607,7 @@
 }
 
 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\


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /