summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20505: Add debug info to analyze sporaric failures ofVictor Stinner2014-02-101-0/+6
| | | | test_timeout_rounding() on Windows XP buildbots.
* asyncio: Tulip issue 112: Inline make_handle() into Handle constructorVictor Stinner2014-02-095-12/+7
|
* asyncio: Remove more relics of resolution/granularity.Guido van Rossum2014-02-092-6/+0
|
* asyncio: Remove Process.subprocess attribute; it's too easy to get inconsistentVictor Stinner2014-02-091-4/+0
| | | | Process and Popen objects
* Issue #20505: Remove resolution and _granularity from selectors and asyncioVictor Stinner2014-02-073-14/+1
| | | | | * Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute
* Issue #20505: add debug infoVictor Stinner2014-02-071-0/+10
|
* asyncio.tasks: Fix as_completed, gather & wait to work with duplicate coroutinesYury Selivanov2014-02-071-3/+4
|
* asyncio.tasks.gather: Fix docstringYury Selivanov2014-02-061-1/+1
|
* asyncio.streams.StreamReader: Add 'at_eof()' methodYury Selivanov2014-02-061-0/+4
|
* asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_dataYury Selivanov2014-02-051-49/+24
|
* asyncio: Fix _ProactorWritePipeTransport._pipe_closed()Victor Stinner2014-02-041-1/+4
| | | | | Do nothing if the pipe is already closed. _loop_writing() may call _force_close() when it gets ConnectionResetError.
* asyncio.subprocess: Replace Process.get_subprocess() method with aVictor Stinner2014-02-031-1/+2
| | | | Process.subprocess read-only property
* Issue #20400: Merge Tulip into Python: add the new asyncio.subprocess moduleVictor Stinner2014-02-015-33/+230
| | | | | | | | | | | | | | | | | | | | * 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)
* Issue #20455: Add a resolution attribute to IocpProactor (1 ms)Victor Stinner2014-01-312-0/+2
|
* Issue #20455: asyncio: use the same code to round a timeout than the selectorsVictor Stinner2014-01-311-4/+9
| | | | | | module Sort also imports
* Issue #20455: asyncio: write a new write pipe transport class for proactor (onVictor Stinner2014-01-311-12/+26
| | | | | | | Windows) instead of using the "duplex" pipe transport. The new class uses a simpler overlapped read to be notified when the pipe is closed. So the protocol doesn't need to implement eof_received(): connection_lost() is called instead. _UnixWritePipeTransport has the same approach.
* asyncio: Fix _UnixWritePipeTransport, raise BrokenPipeError when the pipe isVictor Stinner2014-01-311-1/+4
| | | | closed, but only if there was pending write
* Issue #20452: Remove debug code, no more neededVictor Stinner2014-01-311-9/+1
|
* asyncio: Fix error message in BaseEventLoop.subprocess_shell(). Patch writtenVictor Stinner2014-01-311-1/+1
| | | | by Vajrasky Kok.
* Issue #20452: select and selectors round (again) timeout away from zero forVictor Stinner2014-01-311-10/+5
| | | | | | poll and epoll Improve also debug info to analyze the issue
* Issue #20452: Oops, fix debug code :-/Victor Stinner2014-01-311-5/+10
| | | | Add also event more debug info
* Issue #20452: add more info in case of test_asyncio failure to try to debug theVictor Stinner2014-01-311-1/+9
| | | | failure on buildbot "x86 Ubuntu Shared 3.x"
* asyncio: Fix misc whitespace issues.Guido van Rossum2014-01-311-0/+1
|
* asyncio: Fix granularity of test_utils.TestLoop.Victor Stinner2014-01-311-0/+1
|
* asyncio: Future.set_exception(exc) should instantiate exc if it is a class.Victor Stinner2014-01-311-0/+2
|
* asyncio: subprocess_shell() and subprocess_exec() now raise ValueError ↵Victor Stinner2014-01-291-5/+14
| | | | | | instead of assert. Moreover, bufsize different than 0 is now considered as an error.
* asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor.Victor Stinner2014-01-292-2/+2
|
* asyncio: wait_for() now accepts None as timeout (Victor Stinner).Guido van Rossum2014-01-291-0/+3
|
* asyncio: Pass through pause/resume from subprocess pipe proto to subprocess ↵Guido van Rossum2014-01-291-2/+5
| | | | proto. Also kill dummy eof_received().
* asyncio: Refactor drain logic in streams.py to be reusable.Guido van Rossum2014-01-291-36/+61
|
* asyncio: Get rid of _try_connected().Victor Stinner2014-01-291-18/+14
|
* asyncio: Add write flow control to unix pipes.Guido van Rossum2014-01-291-3/+11
|
* asyncio: Refactoring: move write flow control to a subclass/mixin.Guido van Rossum2014-01-291-37/+61
|
* asyncio: _fatal_error() of _UnixWritePipeTransport and ↵Victor Stinner2014-01-292-2/+4
| | | | | | _ProactorBasePipeTransport shouldn't log BrokenPipeError nor ConnectionResetError. (Same behaviour as _SelectorTransport._fatal_error().)
* asyncio: remove temporary aliasesVictor Stinner2014-01-271-6/+0
|
* Merge latest Tulip into asyncioAndrew Svetlov2014-01-263-7/+0
|
* asyncio: Rename {Empty,Full} to {QueueEmpty,QueueFull} and no longer get ↵Guido van Rossum2014-01-261-9/+19
| | | | them from queue.py.
* asyncio: Locks refactor: use a separate context manager; remove ↵Guido van Rossum2014-01-261-22/+60
| | | | Semaphore._locked.
* asyncio: Fix race in FastChildWatcher (by its original author, Anthony Baire).Guido van Rossum2014-01-261-20/+16
|
* Merge latest Tulip into asyncioVictor Stinner2014-01-252-8/+3
| | | | | | - Make the new granularity attribute private - Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic instead
* asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop norVictor Stinner2014-01-251-7/+1
| | | | | | BaseProactorEventLoop Import them from submodules if you really need them.
* Update asyncio from the Tulip projectVictor Stinner2014-01-255-14/+38
| | | | | | | | | | | | | | | | Major changes: - StreamReader.readexactly() now raises an IncompleteReadError if the end of stream is reached before we received enough bytes, instead of returning less bytes than requested. - Unit tests use the main asyncio module instead of submodules like events - _UnixWritePipeTransport now also supports character devices, as _UnixReadPipeTransport. Patch written by Jonathan Slenders. - Export more symbols: BaseEventLoop, BaseProactorEventLoop, BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full
* Fix asyncio tests: define resolutionVictor Stinner2014-01-251-0/+4
|
* Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximumVictor Stinner2014-01-252-0/+7
| | | | | | between the resolution of the BaseEventLoop.time() method and the resolution of the selector. The granuarility is used in the scheduler to round time and deadline.
* asyncio: wait_for() now cancels the future on timeout. Patch written by GustavoVictor Stinner2014-01-231-2/+4
| | | | Carneiro.
* asyncio (Tulip issue 110): StreamReader.read() and StreamReader.readline() nowVictor Stinner2014-01-231-7/+14
| | | | | raise a RuntimeError, instead of using an assertion, if another coroutine is already waiting for incoming data
* asyncio: Fix open_connection() documentation, writer is a StreamWriterVictor Stinner2014-01-231-1/+1
|
* asyncio: Cleanup logging in BaseEventLoop._run_once()Victor Stinner2014-01-221-2/+5
| | | | | | logger.log() is now responsible to format the timeout. It might be faster if the log is disabled for DEBUG level, but it's also more readable and fix an issue with Python 2.6 in the Trollius project.
* Close #20275: Optimize BaseEventLoop._run_once()Victor Stinner2014-01-201-8/+11
| | | | | | Logger.log() is "slow", logger.isEnabledFor() is faster and the logger is disabled in most cases. A microbenchmark executing 100,000 dummy tasks is 22% faster with this change.
* asyncio: Reincarnate CoroWrapper's docstring as a comment.Guido van Rossum2014-01-161-0/+2
|