News for hackers. Stuff that matters.
Re:Problems I Have with Python by Loic on Wednesday January 25, 2017 @06:12AM (#13480454)
I am using flask because you know, long string of development with flask over the years, your application is growing and then you hit some walls. I do not want to rewrite everything just for a couple of views within my application.

Flask with gunicorn has its own even loop and asyncio io another one and at the end it is hard to be sure if something is working because I am lucky or because it is the way to do things.

Anyway, thank you for your example, it is really clear and easy to understand! Maybe we need a flask like framework which is asyncio based. Which mean I will need to upgrade the code to Python 3 :)

Re:Problems I Have with Python by loganekz on Wednesday January 25, 2017 @02:21PM (#13484957)
If you haven't already, check out sanic [1] which is powered by uvloop [2] which itself is pretty amazing.

[1] https://github.com/channelcat/sanic

[2] https://github.com/MagicStack/uvloop

Re:Problems I Have with Python by orf on Wednesday January 25, 2017 @06:19AM (#13480494)