Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. ↵ | Yury Selivanov | 2017-06-11 | 1 | -0/+1 |
| | | | | (#2110) | ||||
* | Issue #28634: Fix asyncio.isfuture() to support mocks | Yury Selivanov | 2016-11-07 | 1 | -2/+3 |
| | |||||
* | Merge asyncio upstream. | Guido van Rossum | 2016-09-09 | 1 | -6/+18 |
| | |||||
* | Rename Future._blocking to _asyncio_future_blocking. | Guido van Rossum | 2016-09-09 | 1 | -2/+10 |
| | | | | | | | | | | | | This is now an official "protected" API that can be used to write classes that are duck-type-compatible with Future without subclassing it. (For that purpose I also changed isinstance(result, Future) to check for this attribute instead.) Hopefully Amber Brown can use this to make Twisted.Deferred compatible with asyncio.Future. Tests and docs are TBD. | ||||
* | Issue #27041: asyncio: Add loop.create_future method | Yury Selivanov | 2016-05-16 | 1 | -1/+3 |
| | |||||
* | asyncio: Prevent StopIteration from being thrown into a Future | Yury Selivanov | 2016-03-02 | 1 | -0/+3 |
| | | | | Patch by Chris Angelico (issue #26221) | ||||
* | Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar | Martin Panter | 2016-02-10 | 1 | -1/+1 |
| | | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear. | ||||
* | asyncio: Cleanup Future API | Yury Selivanov | 2015-11-17 | 1 | -30/+30 |
| | | | | See https://github.com/python/asyncio/pull/292 for details. | ||||
* | Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. | Guido van Rossum | 2015-10-03 | 1 | -16/+58 |
| | |||||
* | asyncio: Add asyncio.compat module | Victor Stinner | 2015-07-25 | 1 | -6/+4 |
| | | | | | Move compatibility helpers for the different Python versions to a new asyncio.compat module. | ||||
* | asyncio: Support PEP 492. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -0/+4 |
| | |||||
* | Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions ↵ | Guido van Rossum | 2015-05-03 | 1 | -1/+1 |
| | | | | without __name__. | ||||
* | Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport | Victor Stinner | 2015-01-29 | 1 | -3/+3 |
| | | | | is not explicitly closed. Close also explicitly transports in test_sslproto. | ||||
* | Issue #23209: Break some reference cycles in asyncio. Patch written by Martin | Victor Stinner | 2015-01-09 | 1 | -1/+1 |
| | | | | Richard. | ||||
* | asyncio: sync with Tulip | Victor Stinner | 2015-01-09 | 1 | -2/+0 |
| | | | | | | | * Tulip issue 184: FlowControlMixin constructor now get the event loop if the loop parameter is not set. Add unit tests to ensure that constructor of StreamReader and StreamReaderProtocol classes get the event loop. * Remove outdated TODO/XXX | ||||
* | asyncio: Initialize more Future and Task attributes in the class definition to | Victor Stinner | 2014-12-04 | 1 | -2/+1 |
| | | | | avoid attribute errors in destructors. | ||||
* | Removed duplicated words in in comments and docs. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+1 |
| | |||||
* | asyncio: Fix formatting of the "Future exception was never retrieved" in | Victor Stinner | 2014-11-20 | 1 | -3/+4 |
| | | | | release mode | ||||
* | asyncio: sync with Tulip | Victor Stinner | 2014-07-29 | 1 | -10/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | * _WaitHandleFuture.cancel() now notify IocpProactor through the overlapped object that the wait was cancelled. * Optimize IocpProactor.wait_for_handle() gets the result if the wait is signaled immediatly. * Enhance representation of Future and Future subclasses - Add "created at filename:lineno" in the representation - Add Future._repr_info() method which can be more easily overriden than Future.__repr__(). It should now be more easy to enhance Future representation without having to modify each subclass. For example, _OverlappedFuture and _WaitHandleFuture get the new "created at" information. - Use reprlib to format Future result, and function arguments when formatting a callback, to limit the length of the representation. * Fix repr(_WaitHandleFuture) * _WaitHandleFuture and _OverlappedFuture: hide frames of internal calls in the source traceback. * Cleanup ProactorIocp._poll(): set the timeout to 0 after the first call to GetQueuedCompletionStatus() * test_locks: close the temporary event loop and check the condition lock * Remove workaround in test_futures, no more needed | ||||
* | Closes #21886, #21447: Fix a race condition in asyncio when setting the result | Victor Stinner | 2014-07-05 | 1 | -0/+6 |
| | | | | | of a Future with call_soon(). Add an helper, a private method, to set the result only if the future was not cancelled. | ||||
* | asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and | Victor Stinner | 2014-06-27 | 1 | -10/+19 |
| | | | | | | | | | | | Handle objects are created. Pass the traceback to call_exception_handler() in the 'source_traceback' key. The traceback is truncated to hide internal calls in asyncio, show only the traceback from user code. Add tests for the new source_traceback, and a test for the 'Future/Task exception was never retrieved' log. | ||||
* | asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle | Victor Stinner | 2014-06-25 | 1 | -16/+32 |
| | | | | | | - Uniformize repr() output to format "<Class ...>" - On Python 3.5+, repr(Task) uses the qualified name instead of the short name of the coroutine | ||||
* | asyncio: Log an error if a Task is destroyed while it is still pending | Victor Stinner | 2014-06-24 | 1 | -0/+3 |
| | |||||
* | asyncio: remove unused imports and unused variables noticed by pyflakes | Victor Stinner | 2014-02-20 | 1 | -1/+0 |
| | |||||
* | asyncio: New error handling API. Issue #20681. | Yury Selivanov | 2014-02-18 | 1 | -7/+15 |
| | |||||
* | asyncio: Future.set_exception(exc) should instantiate exc if it is a class. | Victor Stinner | 2014-01-31 | 1 | -0/+2 |
| | |||||
* | Issue #19967: Defer the formating of the traceback in asyncio.Future destructor | Victor Stinner | 2013-12-20 | 1 | -11/+14 |
| | |||||
* | asyncio: Clean up formatting. | Guido van Rossum | 2013-12-19 | 1 | -3/+1 |
| | |||||
* | Close #19967: Thanks to the PEP 442, asyncio.Future can use a destructor in | Victor Stinner | 2013-12-19 | 1 | -7/+25 |
| | | | | | Python 3.4 to log "uncatched" exceptions, instead of the dedicated _TracebackLogger class. | ||||
* | asyncio: Pass cancellation from wrapping Future to wrapped Future. By Saúl ↵ | Guido van Rossum | 2013-11-22 | 1 | -3/+8 |
| | | | | Ibarra Corretgé (mostly). | ||||
* | Rename the logger to plain "logger". | Guido van Rossum | 2013-10-17 | 1 | -3/+3 |
| | |||||
* | Initial checkin of asyncio package (== Tulip, == PEP 3156). | Guido van Rossum | 2013-10-17 | 1 | -0/+338 |