[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

Richard Kiss report at bugs.python.org
Sun Apr 13 03:10:42 CEST 2014


New submission from Richard Kiss:

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

----------
components: Library (Lib)
files: put_get_bug.py
messages: 215991
nosy: richard.kiss
priority: normal
severity: normal
status: open
title: q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file34795/put_get_bug.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21209>
_______________________________________


More information about the Python-bugs-list mailing list