是否有来自python 3的concurrency.futures包的python 2 backport

时间:2017-02-21 20:30:16

标签: python-2.7 concurrency backport

我想使用好的执行程序和线程池API,但我受限于Python 2环境。由于另一个第三方依赖,我无法升级到Python 3。

我找到的最接近的答案是: Concurrent in Python 2

1 个答案:

答案 0 :(得分:2)

为Python 2找到以下包:https://pypi.python.org/pypi/futures

它说:来自Python 3.2的concurrent.futures包的Backport

尝试一下。