STINNER Victor added the comment:
The error occurs at line "v = yield from q.get()":
Traceback (most recent call last):
File "/home/haypo/prog/python/default/Lib/asyncio/events.py", line 39, in _run
self._callback(*self._args)
File "/home/haypo/prog/python/default/Lib/asyncio/tasks.py", line 357, in
_wakeup
self._step(value, None)
File "/home/haypo/prog/python/default/Lib/asyncio/tasks.py", line 309, in
_step
self.set_exception(exc)
File "/home/haypo/prog/python/default/Lib/asyncio/tasks.py", line 301, in
_step
result = coro.send(value)
File "put_get_bug.py", line 23, in t2
v = yield from q.get()
TypeError: send() takes 2 positional arguments but 7 were given
Task._step() is called with value=(0, 1, 2, 3, 4, 5) (and exc is None).
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue21209>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com