OK i figured that wsgiref (PEP-) is currently incompatible with
asyncio. I'm not sure about the motivations of this incompatibility.
Would it be so hard to make a "wsgiref.asyncio_server" extension for
people wanting to use wsgiref for development without having to use a
third-party extensi
This code is compatible with PEP- on Python 3.5.3:
@asyncio.coroutine
def app(environ, start_response):
try:
result = (yield from AsyncIOController().application(environ,
start_response))
except:
raise
else:
#XXX result is a generator. this should not be
Hi,
I'm trying to implement the asyncio.coroutine decorator in my wsgi app.
Here's my server code:
class AsyncIOController(WSGIController):
def __init__(self, settings=None, executor=None, loop=None
):
super(AsyncIOController, self).__init__(settings)
# asyncio confi