Georgy added the comment:
I successfully use my code:
import asyncio, sanic
class MyQueue(asyncio.Queue):
def __aiter__(self): return self
async def __anext__(self): return await self.get()
app = sanic.Sanic()
ws_set = set()
app.static('/', 'async.html')
@app.we
New submission from Georgy:
adding to asyncio.Queue class following methods:
def __aiter__(self): return self
async def __anext__(self): return await self.get()
let use asyncio.Queue follow:
queue = asyncio.Queue()
...
async for item in queue: do_something_with(item
Georgy Kibardin added the comment:
Please, reopen.
--
___
Python tracker
<https://bugs.python.org/issue40037>
___
___
Python-bugs-list mailing list
Unsubscribe:
Georgy Kibardin added the comment:
This is not a duplicate of https://bugs.python.org/issue38731. quiet is is
still undefined in main()
--
nosy: +Georgy Kibardin
___
Python tracker
<https://bugs.python.org/issue40
Georgy Kibardin added the comment:
https://bugs.python.org/issue39743 is closed as duplicate of
https://bugs.python.org/issue38731.
https://bugs.python.org/issue38731 fixes undeclared variable "quiet" in
function compile().
At the same time variable "quiet" is used in f