summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/coroutines.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2370)Mariatta2017-06-241-1/+1
| | | | defiend -> defined (cherry picked from commit cab469245d7635447c5e04fa6ed860b067dfc26b)
* Merge 3.5 (issue #28703)Yury Selivanov2016-11-151-2/+14
|\
| * Issue #28703: Fix asyncio.iscoroutinefunction to handle Mock objects.Yury Selivanov2016-11-151-2/+14
| |
* | Merge 3.5 (asyncio)Yury Selivanov2016-11-091-2/+6
|\ \ | |/
| * asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__Yury Selivanov2016-11-091-2/+6
| | | | | | | | | | | | Some built-in coroutine-like objects might not have __name__ or __qualname__. A good example of such are 'asend', 'aclose' and 'athrow' coroutine methods of asynchronous generators.
* | Issue #28544: Implement asyncio.Task in C.Yury Selivanov2016-10-281-2/+2
|/ | | | | | | | This implementation provides additional 10-20% speed boost for asyncio programs. The patch also fixes _asynciomodule.c to use Arguments Clinic, and makes '_schedule_callbacks' an overridable method (as it was in 3.5).
* Issue #28372: Fix asyncio to support formatting of non-python coroutinesYury Selivanov2016-10-051-0/+19
|
* Misc asyncio improvements from upstreamGuido van Rossum2016-09-301-2/+2
|
* Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__.Yury Selivanov2016-09-151-1/+1
| | | | Patch by iceboy.
* Merge asyncio upstream.Guido van Rossum2016-09-091-2/+2
|
* asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647)Yury Selivanov2016-03-021-1/+2
| | | | Patch by Vladimir Rutsky.
* Sync with asyncio repoAndrew Svetlov2016-01-111-7/+10
|
* asyncio: Error if awaiting in parallel on the same coroutineYury Selivanov2015-11-181-1/+7
| | | | | | This change won't do anything in CPython 3.4 See https://github.com/python/asyncio/pull/293 for details.
* asyncio: Add asyncio.compat moduleVictor Stinner2015-07-251-4/+2
| | | | | Move compatibility helpers for the different Python versions to a new asyncio.compat module.
* Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapperYury Selivanov2015-07-031-0/+8
|
* Fix asyncio unittests in debug modeYury Selivanov2015-06-241-0/+2
|
* Issue #24400: Fix CoroWrapper for 'async def' coroutinesYury Selivanov2015-06-241-10/+40
|
* asyncio: Merge changes from issue #24400.Yury Selivanov2015-06-241-31/+17
|
* Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutinesYury Selivanov2015-06-011-1/+1
|
* Issue 24004: Support Awaitables (pep 492) in @asyncio.coroutine decoratorYury Selivanov2015-05-311-2/+13
|
* asyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine (in 3.5)Yury Selivanov2015-05-131-0/+8
|
* asyncio: Support PEP 492. Issue #24017.Yury Selivanov2015-05-121-13/+64
|
* Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions ↵Guido van Rossum2015-05-031-6/+12
| | | | without __name__.
* asyncio: Truncate to 80 columnsVictor Stinner2015-01-081-4/+8
|
* asyncio: sync with TulipVictor Stinner2014-07-101-9/+3
| | | | | | | - CoroWrapper.__del__() now reuses repr(CoroWrapper) to log the "... was never yielded from" warning - Improve CoroWrapper: copy also the qualified name on Python 3.4, not only on Python 3.5+
* asyncio: sync with TulipVictor Stinner2014-07-101-6/+18
| | | | | | | - repr(Task) and repr(CoroWrapper) now also includes where these objects were created. If the coroutine is not a generator (don't use "yield from"), use the location of the function, not the location of the coro() wrapper. - Fix create_task(): truncate the traceback to hide the call to create_task().
* asyncio: sync with TulipVictor Stinner2014-07-071-2/+2
| | | | | | | | - Tulip issue #181: Faster create_connection(). Call directly waiter.set_result() in the constructor of _ProactorBasePipeTransport and _SelectorSocketTransport, instead of using of delaying the call with call_soon(). - Cleanup iscoroutine()
* Closes #21886, #21447: Fix a race condition in asyncio when setting the resultVictor Stinner2014-07-051-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: sync with TulipVictor Stinner2014-07-021-6/+8
| | | | | | | | | | * _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode, not in read mode * Examples: close the event loop at exit * More reliable CoroWrapper.__del__. If the constructor is interrupted by KeyboardInterrupt or the coroutine objet is destroyed lately, some the _source_traceback attribute doesn't exist anymore. * repr(Task): include also the future the task is waiting for
* asyncio: sync with TulipVictor Stinner2014-06-301-8/+49
| | | | | | | | | | | - Sort imports - Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it with isinstance(obj, types.GeneratorType) - CoroWrapper: check at runtime if Python has the yield-from bug #21209. If Python has the bug, check if CoroWrapper.send() was called by yield-from to decide if parameters must be unpacked or not. - Fix "Task was destroyed but it is pending!" warning in test_task_source_traceback()
* asyncio: sync with Tulip, add a new asyncio.coroutines moduleVictor Stinner2014-06-281-0/+140