Issue 16488: Add context manager support to epoll object (original ) (raw ) This issue has been migrated to GitHub: https://github.com/python/cpython/issues/60692
classification
process
Created on 2012-11-16 15:14 by serhiy.storchaka , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (5)
msg175693 - (view)
Author: Serhiy Storchaka (serhiy.storchaka) *
Date: 2012-11-16 15:14
The proposed patch adds support of context manager protocol to epoll objects.
msg175702 - (view)
Author: Antoine Pitrou (pitrou) *
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) *
Date: 2012-11-23 17:20
+0 for patch
msg177558 - (view)
Author: Roundup Robot (python-dev)
Date: 2012-12-15 20:16
New changeset d6f61cd364d9 by Antoine Pitrou in branch 'default': Issue #16488 : epoll() objects now support the `with` statement. http://hg.python.org/cpython/rev/d6f61cd364d9
msg177559 - (view)
Author: Antoine Pitrou (pitrou) *
Date: 2012-12-15 20:17
Committed, thank you!
History
Date
User
Action
Args
2022-04-11 14:57:38
admin
set
github: 60692
2013-01-27 02:02:56
jcea
set
nosy: + jcea
2012-12-15 20:17:44
pitrou
set
status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2012-12-15 20:16:28
python-dev
set
nosy: + python-dev messages: +
2012-11-23 17:20:35
asvetlov
set
nosy: + asvetlov messages: +
2012-11-16 18:35:09
pitrou
set
nosy: + pitrou messages: +
2012-11-16 15:14:09
serhiy.storchaka
create