python3.5中没有提供asyncio.timeout?

No asyncio.timeout provided in python3.5?

根据 python3.5 文档,应该有一个句柄 在 asyncio 模块 ->documentation.

中调用了 timeout

但是如果我尝试使用它 python3.5 告诉我,没有 asyncio.timeout:

$ python3.5
Python 3.5.0+ (default, Oct 11 2015, 09:05:38) 
[GCC 5.2.1 20151010] on linux
>>> import asyncio
>>> asyncio.timeout(3)
AttributeError: module 'asyncio' has no attribute 'timeout'

我已经在网上搜索过了,但我找不到任何解决办法。

我正在使用 Linux <my hostname> 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

那么我该如何使用 asyncio.timeout,为什么它不在应该的位置,或者我怎样才能绕过我的问题?

它将出现在Python 3.5.2

现在您可以使用 aiohttp 中的 Timeout class 具有相同的行为。