[issue19860] asyncio: Add context manager to BaseEventLoop?

Guido van Rossum report at bugs.python.org
Mon Dec 2 16:53:11 CET 2013


Guido van Rossum added the comment:

Isn't this mostly political correctness? The hello world programs really don't need to worry about closing the socket pair. Most real-world programs don't either -- the recommended pattern is just to loop until the end of the world, and then exit the program.

I'd like to counter with some political correctness of my own -- this smells like a new feature and therefore shouldn't be added to 3.4.  (Adding Larry -- if Larry is fine with making small additions to asyncio during the beta, I am also okay with adding this.)

----------
nosy: +larry

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19860>
_______________________________________


More information about the Python-bugs-list mailing list