mynote/python/tornado/tornado 5.0 release.md
2018-03-15 10:59:13 +08:00

22 lines
883 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# tornado 5.0 更新
- 官方更新文档 http://www.tornadoweb.org/en/stable/releases/v5.0.0.html
## highlight
- 融合了python原生协程库 asyncio
- 仅支持 2.7.9 + 和 3.4+
- tornado 6.0 将只会支持3.5+
tips 尽快转向python3.5 速度和一些新特性用的很舒服
## note
- 新特性只支持3.5.2+ 由于asyncio的迭代协议变化所以3.5.0,3.5.1不支持新特性
- 不再支持 trollius 转python3.5.2+吧)
- tornado.concurrent.Future 使用的是 asyncio.Future (for 3.5.2+)
- io_loop 从好多好多好多好多函数方法参数里移除了所以很多库都有兼容问题比如tornado-redis更新文档里搜索 io_loop 发现大约17个类移除了这个参数意味这要使用tornado5.0,项目的很多基础组件都得打个难看的补丁)
- 其他的细节自己看文档去吧,我大概就看了这些