Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2bc930f0
Commit
2bc930f0
authored
Dec 31, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whatsnew: epoll supports with.
Also reworded the description of the feature in the docs.
parent
d9ddd3f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
Doc/library/select.rst
Doc/library/select.rst
+8
-3
Doc/whatsnew/3.4.rst
Doc/whatsnew/3.4.rst
+9
-0
No files found.
Doc/library/select.rst
View file @
2bc930f0
...
...
@@ -58,9 +58,14 @@ The module defines the following:
which can be used as Edge or Level Triggered interface for I/O
events. *sizehint* is deprecated and completely ignored. *flags* can be set
to :const:`EPOLL_CLOEXEC`, which causes the epoll descriptor to be closed
automatically when :func:`os.execve` is called. See section
:ref:`epoll-objects` below for the methods supported by epolling objects.
They also support the :keyword:`with` statement.
automatically when :func:`os.execve` is called.
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>`.
...
...
Doc/whatsnew/3.4.rst
View file @
2bc930f0
...
...
@@ -851,6 +851,15 @@ New :func:`resource.prlimit` function and Linux specific constants.
(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
------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment