66
77--------------
88
9- This module provides access to the :c:func: `select ` and :c:func: `poll ` functions
10- available in most operating systems, :c:func: `devpoll ` available on
11- Solaris and derivatives, :c:func: `epoll ` available on Linux 2.5+ and
12- :c:func: `kqueue ` available on most BSD.
9+ This module provides access to the :c:func: `! select ` and :c:func: `! poll ` functions
10+ available in most operating systems, :c:func: `! devpoll ` available on
11+ Solaris and derivatives, :c:func: `! epoll ` available on Linux 2.5+ and
12+ :c:func: `! kqueue ` available on most BSD.
1313Note that on Windows, it only works for sockets; on other operating systems,
1414it also works for other file types (in particular, on Unix, it works on pipes).
1515It cannot be used on regular files to determine whether a file has grown since
@@ -41,10 +41,10 @@ The module defines the following:
4141 polling object; see section :ref: `devpoll-objects ` below for the
4242 methods supported by devpoll objects.
4343
44- :c:func: `devpoll ` objects are linked to the number of file
44+ :c:func: `! devpoll ` objects are linked to the number of file
4545 descriptors allowed at the time of instantiation. If your program
46- reduces this value, :c:func: `devpoll ` will fail. If your program
47- increases this value, :c:func: `devpoll ` may return an
46+ reduces this value, :c:func: `! devpoll ` will fail. If your program
47+ increases this value, :c:func: `! devpoll ` may return an
4848 incomplete list of active file descriptors.
4949
5050 The new file descriptor is :ref: `non-inheritable <fd_inheritance >`.
@@ -62,7 +62,7 @@ The module defines the following:
6262
6363 *sizehint * informs epoll about the expected number of events to be
6464 registered. It must be positive, or ``-1 `` to use the default. It is only
65- used on older systems where :c:func: `epoll_create1 ` is not available;
65+ used on older systems where :c:func: `! epoll_create1 ` is not available;
6666 otherwise it has no effect (though its value is still checked).
6767
6868 *flags * is deprecated and completely ignored. However, when supplied, its
@@ -117,7 +117,7 @@ The module defines the following:
117117
118118.. function :: select(rlist, wlist, xlist[, timeout])
119119
120- This is a straightforward interface to the Unix :c:func: `select ` system call.
120+ This is a straightforward interface to the Unix :c:func: `! select ` system call.
121121 The first three arguments are iterables of 'waitable objects': either
122122 integers representing file descriptors or objects with a parameterless method
123123 named :meth: `~io.IOBase.fileno ` returning such an integer:
@@ -154,7 +154,7 @@ The module defines the following:
154154 .. index :: single: WinSock
155155
156156 File objects on Windows are not acceptable, but sockets are. On Windows,
157- the underlying :c:func: `select ` function is provided by the WinSock
157+ the underlying :c:func: `! select ` function is provided by the WinSock
158158 library, and does not handle file descriptors that don't originate from
159159 WinSock.
160160
@@ -169,7 +169,7 @@ The module defines the following:
169169
170170 The minimum number of bytes which can be written without blocking to a pipe
171171 when the pipe has been reported as ready for writing by :func: `~select.select `,
172- :func: `poll ` or another interface in this module. This doesn't apply
172+ :func: `! poll ` or another interface in this module. This doesn't apply
173173 to other kind of file-like objects such as sockets.
174174
175175 This value is guaranteed by POSIX to be at least 512.
@@ -184,11 +184,11 @@ The module defines the following:
184184``/dev/poll `` Polling Objects
185185-----------------------------
186186
187- Solaris and derivatives have ``/dev/poll ``. While :c:func: `select ` is
188- O(highest file descriptor) and :c:func: `poll ` is O(number of file
187+ Solaris and derivatives have ``/dev/poll ``. While :c:func: `! select ` is
188+ O(highest file descriptor) and :c:func: `! poll ` is O(number of file
189189descriptors), ``/dev/poll `` is O(active file descriptors).
190190
191- ``/dev/poll `` behaviour is very close to the standard :c:func: `poll `
191+ ``/dev/poll `` behaviour is very close to the standard :c:func: `! poll `
192192object.
193193
194194
@@ -222,7 +222,7 @@ object.
222222 implement :meth: `!fileno `, so they can also be used as the argument.
223223
224224 *eventmask * is an optional bitmask describing the type of events you want to
225- check for. The constants are the same that with :c:func: `poll `
225+ check for. The constants are the same that with :c:func: `! poll `
226226 object. The default value is a combination of the constants :const: `POLLIN `,
227227 :const: `POLLPRI `, and :const: `POLLOUT `.
228228
@@ -231,7 +231,7 @@ object.
231231 Registering a file descriptor that's already registered is not an
232232 error, but the result is undefined. The appropriate action is to
233233 unregister or modify it first. This is an important difference
234- compared with :c:func: `poll `.
234+ compared with :c:func: `! poll `.
235235
236236
237237.. method :: devpoll.modify(fd[, eventmask])
@@ -376,13 +376,13 @@ Edge and Level Trigger Polling (epoll) Objects
376376Polling Objects
377377---------------
378378
379- The :c:func: `poll ` system call, supported on most Unix systems, provides better
379+ The :c:func: `! poll ` system call, supported on most Unix systems, provides better
380380scalability for network servers that service many, many clients at the same
381- time. :c:func: `poll ` scales better because the system call only requires listing
382- the file descriptors of interest, while :c:func: `select ` builds a bitmap, turns
381+ time. :c:func: `! poll ` scales better because the system call only requires listing
382+ the file descriptors of interest, while :c:func: `! select ` builds a bitmap, turns
383383on bits for the fds of interest, and then afterward the whole bitmap has to be
384- linearly scanned again. :c:func: `select ` is O(highest file descriptor), while
385- :c:func: `poll ` is O(number of file descriptors).
384+ linearly scanned again. :c:func: `! select ` is O(highest file descriptor), while
385+ :c:func: `! poll ` is O(number of file descriptors).
386386
387387
388388.. method :: poll.register(fd[, eventmask])
0 commit comments