Victor Stinner
4bd652a276
asyncio: Document Task.cancel() properly.
2014-04-07 11:18:06 +02:00
Victor Stinner
d74ac82df9
asyncio, Tulip issue 158: Task._step() now also sets self to None if an
...
exception is raised. self is set to None to break a reference cycle.
2014-03-04 23:07:08 +01:00
Victor Stinner
da492a8c39
asyncio: remove unused imports and unused variables noticed by pyflakes
2014-02-20 10:37:27 +01:00
Victor Stinner
7ef60cd8c2
asyncio, Tulip issue #136 : Add get/set_debug() methods to BaseEventLoopTests.
...
Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since
Python startup, to be able to debug coroutines defined directly in the asyncio
module.
2014-02-19 23:15:02 +01:00
Yury Selivanov
b0b0e628ee
asyncio: Fix spelling and typos.
...
Thanks to Vajrasky Kok for discovering some of them.
2014-02-18 22:27:48 -05:00
Guido van Rossum
b58f053e48
asyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes issue #20566 .
2014-02-12 17:58:19 -08:00
Victor Stinner
eb74876e99
asyncio, Tulip issue 131: as_completed() and wait() now raises a TypeError if
...
the list of futures is not a list but a Future, Task or coroutine object
2014-02-11 11:54:08 +01:00
Yury Selivanov
622be340fd
asyncio.tasks: Fix as_completed, gather & wait to work with duplicate coroutines
2014-02-06 22:06:16 -05:00
Yury Selivanov
f317cb7a20
asyncio.tasks.gather: Fix docstring
2014-02-06 12:03:53 -05:00
Guido van Rossum
48c66c3dd8
asyncio: wait_for() now accepts None as timeout (Victor Stinner).
2014-01-29 14:30:38 -08:00
Victor Stinner
421e49b5c1
asyncio: wait_for() now cancels the future on timeout. Patch written by Gustavo
...
Carneiro.
2014-01-23 17:40:59 +01:00
Guido van Rossum
e1f554490d
asyncio: Reincarnate CoroWrapper's docstring as a comment.
2014-01-16 11:05:23 -08:00
Victor Stinner
bac7793b5b
asyncio: Fix CoroWrapper (fix my previous commit)
...
Add __name__ and __doc__ to __slots__
2014-01-16 01:55:29 +01:00
Victor Stinner
4d7a29c5de
asyncio: Fix a typo in CoroWrapper
...
__slot__ => __slots__
2014-01-16 01:38:24 +01:00
Guido van Rossum
68816ef058
Export asyncio.iscoroutine[function].
2013-12-28 08:06:40 -10:00
Guido van Rossum
1a605ed5a3
asyncio: Add Task.current_task() class method.
2013-12-06 12:57:40 -08:00
Guido van Rossum
de3a1363a9
asyncio: Add 'shield' to __all__.
2013-11-29 09:29:00 -08:00
Guido van Rossum
2b430b8720
asyncio: Fold some long lines.
2013-11-01 14:13:30 -07:00
Guido van Rossum
fc29e0f37e
Rename the logger to plain "logger".
2013-10-17 15:39:45 -07:00
Guido van Rossum
27b7c7ebf1
Initial checkin of asyncio package (== Tulip, == PEP 3156).
2013-10-17 13:40:50 -07:00