Uvloop: Compat for Python 2.7

Created on 4 May 2016  Â·  8Comments  Â·  Source: MagicStack/uvloop

Would love to look at adopting uvloop in a number of high-scale tornado apps we have in production. Those are running Python 2.7 - what's stopping this library from adding support?

question

Most helpful comment

What's stopping you from porting your apps to 3.5+ instead?

All 8 comments

uvloop implements an asyncio-compliant event loop. It will have to be heavily reengineered to support both asyncio and Tornado (basically we'll have to re-implement a lot of Tornado in uvloop), and unfortunately, I don't have resources to do that.

What's stopping you from porting your apps to 3.5+ instead?

Tornado has a asyncio bridge though.

http://www.tornadoweb.org/en/stable/asyncio.html

On May 4, 2016, at 12:37 PM, Aleksandr Tihomirov [email protected] wrote:

What's stopping you from porting your apps to 3.5+ instead?

―
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

Tornado has a asyncio bridge though.

Didn't know about that. I think that bridge is only operational under Python 3, though, since asyncio requires at least 3.3. Am I right?

asyncio requires at least 3.3

That's right. I'm going to play with uvloop, tornado, & trollius (asyncio to 2.7 port).

Will followup.

to my knowledge, trollius is deprecated.

I don't know your codebase, however, it should less "dangerous" / more stable way to migrate first your source code to python 3 with tornado.

Fair point, thanks

@breerly Have you seen https://github.com/saghul/tornaduv

Was this page helpful?
0 / 5 - 0 ratings