[docs] [issue21680] asyncio: document event loops
report at bugs.python.org
Thu Jun 19 18:18:47 CEST 2014
STINNER Victor added the comment:
On Windows, the default event loop is _WindowsSelectorEventLoop which calls select.select(). On Windows, select() only accepts socket handles:
Only file descriptors of sockets are accepted for add_reader() and add_writer()? This event loop doesn't support subprocesses.
On Windows, the proactor event loop can be used instead to support subprocesses. But this event loop doesn't support add_reader() nor add_writer() :-( This event loop doesn't support SSL.
On Windows, the granularity of the monotonic time is usually 15.6 msec. I don't know if it's interesting to mention it. The resolution is different if HPET is enabled on Windows.
On Mac OS X older than 10.9 (Mavericks), selectors.KqueueSelector is the default selector but it doesn't character devices like PTY. The SelectorEventLoop can be used with SelectSelector or PollSelector to handle character devices on Mac OS X 10.6 (Snow Leopard) and later.
Python tracker <report at bugs.python.org>
More information about the docs