I've created test.py as a self contained example demonstrating the problem I am facing.
In the application I am working on, I have an asyncio.Queue
object, in which I put tuples of (asyncio.Future, dict)
.
However, whenever executing this code using PYTHONASYNCIODEBUG=1
, I get a strange error on the queue.get()
method.
Here's the error on the test.py script:
$ PYTHONASYNCIODEBUG=1 ./test.py
Traceback (most recent call last):
File "./test.py", line 10, in get
yield from queue.get()
TypeError: send() takes 2 positional arguments but 3 were given