Skip to content

Commit 041ff9b

Browse files
committed
asyncio doc: list Windows and Mac OS X limitations and explain how to work
around them
1 parent 0adc955 commit 041ff9b

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,19 @@ Running subprocesses
286286

287287
Run subprocesses asynchronously using the :mod:`subprocess` module.
288288

289+
.. note::
290+
291+
On Windows, the default event loop uses
292+
:class:`selectors.SelectSelector` which only supports sockets. The
293+
:class:`ProactorEventLoop` should be used instead.
294+
295+
.. note::
296+
297+
On Mac OS X older than Maverick (10.9), :class:`selectors.KqueueSelector`
298+
does not support character devices like PTY, whereas it is used by the
299+
default event loop. The :class:`SelectorEventLoop` can be used with
300+
:class:`SelectSelector` to handle character devices.
301+
289302
.. method:: BaseEventLoop.subprocess_exec(protocol_factory, \*args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=False, shell=False, bufsize=0, \*\*kwargs)
290303

291304
XXX
@@ -294,8 +307,6 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
294307

295308
See the constructor of the :class:`subprocess.Popen` class for parameters.
296309

297-
Availability: Unix.
298-
299310
.. method:: BaseEventLoop.subprocess_shell(protocol_factory, cmd, \*, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=False, shell=True, bufsize=0, \*\*kwargs)
300311

301312
XXX
@@ -304,8 +315,6 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
304315

305316
See the constructor of the :class:`subprocess.Popen` class for parameters.
306317

307-
Availability: Unix.
308-
309318
.. method:: BaseEventLoop.connect_read_pipe(protocol_factory, pipe)
310319

311320
Register read pipe in eventloop.

0 commit comments

Comments
 (0)