summaryrefslogtreecommitdiff
path: root/examples/child_process.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix pyflakes warnings: remove unused variables and importsVictor Stinner2014-02-261-6/+2
|
* Merge (manually) the subprocess_stream into defaultVictor Stinner2014-02-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | * Add a new asyncio.subprocess module * Add new create_subprocess_exec() and create_subprocess_shell() functions * The new asyncio.subprocess.SubprocessStreamProtocol creates stream readers for stdout and stderr and a stream writer for stdin. * The new asyncio.subprocess.Process class offers an API close to the subprocess.Popen class: - pid, returncode, stdin, stdout and stderr attributes - communicate(), wait(), send_signal(), terminate() and kill() methods * Remove STDIN (0), STDOUT (1) and STDERR (2) constants from base_subprocess and unix_events, to not be confused with the symbols with the same name of subprocess and asyncio.subprocess modules * _ProactorBasePipeTransport.get_write_buffer_size() now counts also the size of the pending write * _ProactorBaseWritePipeTransport._loop_writing() may now pause the protocol if the write buffer size is greater than the high water mark (64 KB by default) * Add new subprocess examples: shell.py, subprocess_shell.py, * subprocess_attach_read_pipe.py and subprocess_attach_write_pipe.py
* Use try/finally to close loop in examples. Add --iocp to fetch3.py.Guido van Rossum2013-12-031-2/+4
|
* Fold some long lines.Guido van Rossum2013-10-301-1/+2
|
* Update examples to use asyncio, not tulip.Guido van Rossum2013-10-161-20/+20
|
* raise EofStream in DataBuffer.read() instead of returning None; examples cleanupNikolay Kim2013-09-131-1/+1
|
* Fix for examples/child_process.py by Gustavo Carneiro <gjcarneiro@gmail.com>.Guido van Rossum2013-08-081-7/+15
|
* Add optional loop parameter to StreamReader.Guido van Rossum2013-08-071-12/+2
|
* Move various Windows specific things to a windows_utils submodule.Richard Oudkerk2013-05-301-0/+129
Also rename examples/windows_subprocess.py to examples/child_process.py and make it work on Unix.