Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Future.set_exception(exc) now instanciate exc if it is a class | Victor Stinner | 2014-01-30 | 2 | -0/+7 | |
| | | | | For example, Future.set_exception(RuntimeError) is now allowed. | |||||
* | Fix granularity of test_utils.TestLoop | Victor Stinner | 2014-01-30 | 1 | -0/+1 | |
| | ||||||
* | Fix _UnixWritePipeTransport: raise BrokenPipeError when the pipe is closed | Victor Stinner | 2014-01-30 | 1 | -1/+4 | |
| | ||||||
* | subprocess_shell() and subprocess_exec() methods of BaseEventLoop now raises a | Victor Stinner | 2014-01-29 | 2 | -5/+46 | |
| | | | | | ValueError instead of raising an AssertionError. Moreover, bufsize different than 0 is now considered as an error. | |||||
* | Fix _make_subprocess_transport(): pass extra value to the constructor | Victor Stinner | 2014-01-29 | 2 | -2/+2 | |
| | ||||||
* | Move async() call back to its original position. Issue 117. | Guido van Rossum | 2014-01-28 | 1 | -1/+1 | |
| | ||||||
* | wait_for() now accepts None as timeout | Victor Stinner | 2014-01-28 | 2 | -1/+15 | |
| | ||||||
* | Fix ResourceWarning in tcp and udp echo examples | Victor Stinner | 2014-01-28 | 2 | -5/+9 | |
| | ||||||
* | examples: close the event loop | Victor Stinner | 2014-01-28 | 5 | -10/+25 | |
| | ||||||
* | pass through pause/resume from subprocess pipe proto to subprocess proto. | Guido van Rossum | 2014-01-28 | 1 | -2/+5 | |
| | ||||||
* | Refactor drain logic in streams.py to be reusable. | Guido van Rossum | 2014-01-28 | 1 | -36/+61 | |
| | ||||||
* | Refactoring: get rid of _try_connected(). | Victor Stinner | 2014-01-28 | 1 | -18/+14 | |
| | ||||||
* | Add write flow control to unix pipes. | Guido van Rossum | 2014-01-28 | 1 | -3/+11 | |
| | ||||||
* | Refactoring: move write flow control to a subclass/mixin. | Guido van Rossum | 2014-01-27 | 1 | -37/+61 | |
| | ||||||
* | _fatal_error() of _UnixWritePipeTransport and _ProactorBasePipeTransport don't | Victor Stinner | 2014-01-28 | 2 | -2/+4 | |
| | | | | | | log BrokenPipeError nor ConnectionResetError Same behaviour than _SelectorTransport._fatal_error() | |||||
* | Close loop in crawl.py example (mostly for IOCP). | Guido van Rossum | 2014-01-28 | 1 | -0/+1 | |
| | ||||||
* | Remove temporary aliases Full/Empty. | Guido van Rossum | 2014-01-27 | 1 | -6/+0 | |
| | ||||||
* | The standard readexactly() now raises on a short read, so kill the custom ↵ | Guido van Rossum | 2014-01-26 | 1 | -22/+2 | |
| | | | | wrapper. | |||||
* | Code cleanup: remove unused function | Andrew Svetlov | 2014-01-26 | 3 | -7/+0 | |
| | ||||||
* | Rename {Empty,Full} to {QueueEmpty,QueueFull} and no longer get them from ↵ | Guido van Rossum | 2014-01-25 | 2 | -11/+21 | |
| | | | | queue.py. | |||||
* | Fix whitespace. | Guido van Rossum | 2014-01-25 | 1 | -1/+1 | |
| | ||||||
* | Locks refactor: use a separate context manager; remove Semaphore._locked. | Guido van Rossum | 2014-01-25 | 2 | -22/+95 | |
| | ||||||
* | Fix race in FastChildWatcher (by its original author, Anthony Baire). | Guido van Rossum | 2014-01-25 | 1 | -20/+16 | |
| | ||||||
* | Make the new granularity attribute private | Victor Stinner | 2014-01-26 | 3 | -5/+5 | |
| | ||||||
* | Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic | Victor Stinner | 2014-01-25 | 1 | -6/+1 | |
| | | | | instead | |||||
* | Don't export BaseEventLoop, BaseSelectorEventLoop nor BaseProactorEventLoop | Victor Stinner | 2014-01-25 | 5 | -15/+13 | |
| | | | | Import them from submodules if you really need them. | |||||
* | Strip trailing space | Victor Stinner | 2014-01-25 | 1 | -1/+1 | |
| | ||||||
* | Export more symbols: BaseEventLoop, BaseProactorEventLoop, | Victor Stinner | 2014-01-25 | 8 | -53/+60 | |
| | | | | BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full | |||||
* | Add a granularity attribute to BaseEventLoop: maximum between the resolution of | Victor Stinner | 2014-01-25 | 6 | -1/+41 | |
| | | | | | the BaseEventLoop.time() method and the resolution of the selector. The granuarility is used in the scheduler to round time and deadline. | |||||
* | selectors: add a resolution attribute to BaseSelector | Victor Stinner | 2014-01-25 | 1 | -1/+22 | |
| | ||||||
* | Revert changes in selectors for PollSelector and EpollSelector: round again the | Victor Stinner | 2014-01-25 | 1 | -8/+2 | |
| | | | | timeout towards zero, instead of rounding away from zero | |||||
* | AUTHORS: remove Authors/Contributors titles, only mention that Guido is the | Victor Stinner | 2014-01-24 | 1 | -31/+26 | |
| | | | | author of the project | |||||
* | Issue #111: StreamReader.readexactly() now raises an IncompleteReadError if the | Victor Stinner | 2014-01-24 | 2 | -8/+22 | |
| | | | | | end of stream is reached before we received enough bytes, instead of returning less bytes than requested. | |||||
* | Only skip PTY tests with the kqueue selector | Victor Stinner | 2014-01-24 | 1 | -6/+12 | |
| | | | | PTY tests pass with select and poll selectors on Mac OS 10.9. | |||||
* | _UnixWritePipeTransport now also supports character devices, as | Victor Stinner | 2014-01-24 | 3 | -4/+56 | |
| | | | | _UnixReadPipeTransport. Patch written by Jonathan Slenders. | |||||
* | Unit tests: pick symbols from the asyncio module | Victor Stinner | 2014-01-24 | 1 | -5/+4 | |
| | ||||||
* | Unit tests use the main asyncio module instead of submodules like events | Victor Stinner | 2014-01-24 | 11 | -812/+778 | |
| | ||||||
* | Skip test_events.test_read_pty_output() on Mac OS X older than 10.9 (Maverick) | Victor Stinner | 2014-01-23 | 1 | -0/+3 | |
| | ||||||
* | Issue #110: StreamReader.read() and StreamReader.readline() now raise a | Victor Stinner | 2014-01-23 | 1 | -6/+13 | |
| | | | | | RuntimeError, instead of using an assertion, if another coroutine is already waiting for incoming data | |||||
* | Fix open_connection() docstring, writer is a StreamWriter | Victor Stinner | 2014-01-23 | 1 | -1/+1 | |
| | ||||||
* | wait_for() now cancels the future on timeout. Patch written by Gustavo | Victor Stinner | 2014-01-22 | 3 | -17/+19 | |
| | | | | Carneiro. | |||||
* | Create a list of authors and contributors based on the Mercurial history | Victor Stinner | 2014-01-22 | 1 | -0/+31 | |
| | ||||||
* | selectors: don't mention the Python bug | Victor Stinner | 2014-01-22 | 1 | -3/+1 | |
| | | | | Copy selectors.py from CPython to have exactly the same file in Tulip. | |||||
* | Cleanup logging in BaseEventLoop._run_once() | Victor Stinner | 2014-01-22 | 1 | -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. | |||||
* | Restore asyncio/__init__.py to have the same file in Python 3.4 and Tulip | Victor Stinner | 2014-01-21 | 1 | -3/+7 | |
| | ||||||
* | Fix timeout rounding issues in selectors | Victor Stinner | 2014-01-21 | 2 | -9/+22 | |
| | | | | | | | | Round timeouts away from zero to wait *at least* 'timeout' seconds in PollSelector and EpollSelector. The change in EpollSelector works around a Python bug in select.epoll.poll(): http://bugs.python.org/issue20311 | |||||
* | Optimize BaseEventLoop._run_once() | Victor Stinner | 2014-01-21 | 1 | -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. See the CPython issue: http://bugs.python.org/issue20275 | |||||
* | Reincarnate CoroWrapper's docstring as a comment. | Guido van Rossum | 2014-01-16 | 1 | -0/+2 | |
| | ||||||
* | Fix CoroWrapper (fix my previous commit) | Victor Stinner | 2014-01-16 | 1 | -3/+1 | |
| | | | | Add __name__ and __doc__ to __slots__ | |||||
* | Issue #104: Fix a typo in CoroWrapper | Victor Stinner | 2014-01-16 | 1 | -1/+1 | |
| | | | | __slot__ => __slots__ |