mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix the doc: add deprecation warning in select module.
This commit is contained in:
parent
04d17d30b4
commit
050f9ea4d7
1 changed files with 5 additions and 1 deletions
|
|
@ -377,9 +377,13 @@ linearly scanned again. :c:func:`select` is O(highest file descriptor), while
|
||||||
|
|
||||||
Modifies an already registered fd. This has the same effect as
|
Modifies an already registered fd. This has the same effect as
|
||||||
``register(fd, eventmask)``. Attempting to modify a file descriptor
|
``register(fd, eventmask)``. Attempting to modify a file descriptor
|
||||||
that was never registered causes an :exc:`IOError` exception with errno
|
that was never registered causes an :exc:`OSError` exception with errno
|
||||||
:const:`ENOENT` to be raised.
|
:const:`ENOENT` to be raised.
|
||||||
|
|
||||||
|
.. deprecated:: 3.3
|
||||||
|
|
||||||
|
Instead of :exc:`IOError` the :exc:`OSError` exception is used now.
|
||||||
|
|
||||||
|
|
||||||
.. method:: poll.unregister(fd)
|
.. method:: poll.unregister(fd)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue