This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author richard.kiss
Recipients richard.kiss
Date 2014-04-13.01:10:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397351442.01.0.248805040826.issue21209@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-04-13 01:10:42richard.kisssetrecipients: + richard.kiss
2014-04-13 01:10:42richard.kisssetmessageid: <1397351442.01.0.248805040826.issue21209@psf.upfronthosting.co.za>
2014-04-13 01:10:41richard.kisslinkissue21209 messages
2014-04-13 01:10:41richard.kisscreate