mirror of https://github.com/python/cpython.git
whatsnew: epoll supports with.
Also reworded the description of the feature in the docs.
This commit is contained in:
parent
d9ddd3f9ba
commit
2bc930f044
|
@ -58,9 +58,14 @@ The module defines the following:
|
||||||
which can be used as Edge or Level Triggered interface for I/O
|
which can be used as Edge or Level Triggered interface for I/O
|
||||||
events. *sizehint* is deprecated and completely ignored. *flags* can be set
|
events. *sizehint* is deprecated and completely ignored. *flags* can be set
|
||||||
to :const:`EPOLL_CLOEXEC`, which causes the epoll descriptor to be closed
|
to :const:`EPOLL_CLOEXEC`, which causes the epoll descriptor to be closed
|
||||||
automatically when :func:`os.execve` is called. See section
|
automatically when :func:`os.execve` is called.
|
||||||
:ref:`epoll-objects` below for the methods supported by epolling objects.
|
|
||||||
They also support the :keyword:`with` statement.
|
See the :ref:`epoll-objects` section below for the methods supported by
|
||||||
|
epolling objects.
|
||||||
|
|
||||||
|
``epoll`` objects support the context management protocol: when used in a
|
||||||
|
:keyword:`with` statement, the new file descriptor is automatically closed
|
||||||
|
at the end of the block.
|
||||||
|
|
||||||
The new file descriptor is :ref:`non-inheritable <fd_inheritance>`.
|
The new file descriptor is :ref:`non-inheritable <fd_inheritance>`.
|
||||||
|
|
||||||
|
|
|
@ -851,6 +851,15 @@ New :func:`resource.prlimit` function and Linux specific constants.
|
||||||
(Contributed by Christian Heimes in :issue:`16595` and :issue:`19324`.)
|
(Contributed by Christian Heimes in :issue:`16595` and :issue:`19324`.)
|
||||||
|
|
||||||
|
|
||||||
|
select
|
||||||
|
------
|
||||||
|
|
||||||
|
:class:`~select.epoll` objects now support the context management protocol.
|
||||||
|
When used in a :keyword:`with` statement, the :meth:`~select.epoll.close`
|
||||||
|
method will be called automatically at the end of the block. (Contributed
|
||||||
|
by Serhiy Storchaka in :issue:`16488`.)
|
||||||
|
|
||||||
|
|
||||||
shelve
|
shelve
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue