Message215991
import asyncio
import os
def t1(q):
yield from asyncio.sleep(0.5)
q.put_nowait((0, 1, 2, 3, 4, 5))
def t2(q):
v = yield from q.get()
print(v)
q = asyncio.Queue()
asyncio.get_event_loop().run_until_complete(asyncio.wait([t1(q), t2(q)]))
When PYTHONASYNCIODEBUG is set to 1, this causes a strange error:
TypeError: send() takes 2 positional arguments but 7 were given
See also https://gist.github.com/richardkiss/10564363 |
|
Date |
User |
Action |
Args |
2014-04-13 01:10:42 | richard.kiss | set | recipients:
+ richard.kiss |
2014-04-13 01:10:42 | richard.kiss | set | messageid: <1397351442.01.0.248805040826.issue21209@psf.upfronthosting.co.za> |
2014-04-13 01:10:41 | richard.kiss | link | issue21209 messages |
2014-04-13 01:10:41 | richard.kiss | create | |
|