diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-08-21 22:19:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-08-21 22:19:50 (GMT) |
commit | 13423c3726ac4aa42125ac49e6c5038a015fe3eb (patch) | |
tree | 6658b82985abb3f4c2a201cb2a6320dcc5391a66 /Doc | |
parent | 43f80e6c1f49c3590843d81a1b5ebbe1a2e1c62a (diff) | |
download | cpython-13423c3726ac4aa42125ac49e6c5038a015fe3eb.zip cpython-13423c3726ac4aa42125ac49e6c5038a015fe3eb.tar.gz cpython-13423c3726ac4aa42125ac49e6c5038a015fe3eb.tar.bz2 |
Close #18794: Add a fileno() method and a closed attribute to select.devpoll
objects.
Add also tests on fileno() method and closed attribute of select.epoll and select.kqueue.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/select.rst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Doc/library/select.rst b/Doc/library/select.rst index b73f11e..73b990d 100644 --- a/Doc/library/select.rst +++ b/Doc/library/select.rst @@ -147,6 +147,27 @@ descriptors), ``/dev/poll`` is O(active file descriptors). object. +.. method:: devpoll.close() + + Close the file descriptor of the polling object. + + .. versionadded:: 3.4 + + +.. attribute:: devpoll.closed + + ``True`` if the polling object is closed. + + .. versionadded:: 3.4 + + +.. method:: devpoll.fileno() + + Return the file descriptor number of the polling object. + + .. versionadded:: 3.4 + + .. method:: devpoll.register(fd[, eventmask]) Register a file descriptor with the polling object. Future calls to the @@ -244,6 +265,11 @@ Edge and Level Trigger Polling (epoll) Objects Close the control file descriptor of the epoll object. +.. attribute:: epoll.closed + + ``True`` if the epoll object is closed. + + .. method:: epoll.fileno() Return the file descriptor number of the control fd. @@ -363,6 +389,11 @@ Kqueue Objects Close the control file descriptor of the kqueue object. +.. attribute:: kqueue.closed + + ``True`` if the kqueue object is closed. + + .. method:: kqueue.fileno() Return the file descriptor number of the control fd. |