summaryrefslogtreecommitdiff
path: root/asyncio/coroutines.py
Commit message (Collapse)AuthorAgeFilesLines
* Truncate to 80 columnsVictor Stinner2015-01-091-4/+8
|
* Improve CoroWrapper: copy also the qualified name on Python 3.4, not only onVictor Stinner2014-07-111-7/+2
| | | | Python 3.5+
* CoroWrapper.__del__() now reuses repr(CoroWrapper) to log the "... was neverVictor Stinner2014-07-111-2/+1
| | | | yielded from" warning
* repr(Task) and repr(CoroWrapper) now also includes where these objects wereVictor Stinner2014-07-101-6/+18
| | | | | | | 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.
* cleanup iscoroutine()Victor Stinner2014-07-071-2/+2
|
* Better repr(CoroWrapper); add unit test for repr(CoroWrapper): ensure that ↵Victor Stinner2014-07-031-1/+1
| | | | the qualified name is used
* Add repr(CoroWrapper)Victor Stinner2014-07-031-0/+6
|
* More reliable CoroWrapper.__del__Victor Stinner2014-07-031-6/+8
| | | | | | If the constructor is interrupted by KeyboardInterrupt or the coroutine objet is destroyed lately, some the _source_traceback attribute doesn't exist anymore.
* CoroWrapper: check at runtime if Python has the yield-from bug #21209Victor Stinner2014-06-301-7/+45
| | | | | If Python has the bug, check if CoroWrapper.send() was called by yield-from to decide if parameters must be unpacked or not.
* Simplify/optimize iscoroutine()Victor Stinner2014-06-301-1/+4
| | | | | Inline inspect.isgenerator(obj): replace it with isinstance(obj, types.GeneratorType).
* Move coroutine code in the new module asyncio.coroutinesVictor Stinner2014-06-291-0/+140