This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Add context manager support to epoll object
Type: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, jcea, pitrou, python-dev, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2012-11-16 15:14 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
select_epoll_context_manager.patch serhiy.storchaka, 2012-11-16 15:14 review
Messages (5)
msg175693 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012-11-16 15:14
The proposed patch adds support of context manager protocol to epoll objects.
msg175702 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-11-16 18:35
I don't think that's very useful since generally the epoll object will have to survive accross function calls (it's usually stored as an attribute somewhere on your event loop).

On the other hand, this addition doesn't hurt.
msg176192 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-11-23 17:20
+0 for patch
msg177558 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-12-15 20:16
New changeset d6f61cd364d9 by Antoine Pitrou in branch 'default':
Issue #16488: epoll() objects now support the `with` statement.
msg177559 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-12-15 20:17
Committed, thank you!
Date User Action Args
2022-04-11 14:57:38adminsetgithub: 60692
2013-01-27 02:02:56jceasetnosy: + jcea
2012-12-15 20:17:44pitrousetstatus: open -> closed
resolution: fixed
messages: + msg177559

stage: patch review -> resolved
2012-12-15 20:16:28python-devsetnosy: + python-dev
messages: + msg177558
2012-11-23 17:20:35asvetlovsetnosy: + asvetlov
messages: + msg176192
2012-11-16 18:35:09pitrousetnosy: + pitrou
messages: + msg175702
2012-11-16 15:14:09serhiy.storchakacreate