博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tornado6.0.2报错AttributeError: module 'tornado.web' has no attribute 'asynchronous'
阅读量:4300 次
发布时间:2019-05-27

本文共 488 字,大约阅读时间需要 1 分钟。

今天看tornado异步时发现的错误,查了一下,原来tornado6以后就弃用了tornado.web.asynchronous这种写法了。

tornado降级回到5.1.1就没问题了。

官文文档:

Changed in version 3.1: The ability to use @gen.coroutine without @asynchronous.

Changed in version 4.3: Returning anything but None or a yieldable object from a method decorated with @asynchronous is an error. Such return values were previously ignored silently.

Deprecated since version 5.1: This decorator is deprecated and will be removed in Tornado 6.0. Use coroutines instead.

其他参考:

 

转载地址:http://ncxws.baihongyu.com/

你可能感兴趣的文章
Linux cpu 详解
查看>>
GitHub + Hexo 搭建个人博客
查看>>
Linux Ubuntu 修改网卡名字
查看>>
OpenStack Ocata Horizon 开发(一)—— 快速开始
查看>>
自定义Horizon
查看>>
Django 源码阅读:服务启动(wsgi)
查看>>
Django 源码阅读:url解析
查看>>
第三轮面试题
查看>>
Docker面试题(一)
查看>>
第四轮面试题
查看>>
第一轮面试题
查看>>
2020-11-18
查看>>
Docker面试题(二)
查看>>
一、redis面试题及答案
查看>>
消息队列2
查看>>
消息列队3
查看>>
spring cloud 面试题总结
查看>>
第二轮面试题
查看>>
2021-04-27
查看>>
SSM 写出乐淘商城
查看>>