• Home
Name Date Size #Lines LOC

..--

concurrent/03-May-2024-1,221916

docs/03-May-2024-745435

futures.egg-info/03-May-2024-7865

Android.bpD03-May-20241.8 KiB5248

LICENSED03-May-20242.3 KiB4940

MANIFEST.inD03-May-202486 65

METADATAD03-May-2024342 1816

MODULE_LICENSE_APACHE2D03-May-20240

OWNERSD03-May-2024205 54

PKG-INFOD03-May-20241.9 KiB5341

README.rstD03-May-20241 KiB3625

crawl.pyD03-May-20242.4 KiB7564

primes.pyD03-May-20241.3 KiB5141

setup.cfgD03-May-2024143 128

setup.pyD03-May-20241.4 KiB4336

test_futures.pyD03-May-202427.1 KiB805628

tox.iniD03-May-2024131 96

README.rst

1.. image:: https://travis-ci.org/agronholm/pythonfutures.svg?branch=master
2  :target: https://travis-ci.org/agronholm/pythonfutures
3  :alt: Build Status
4
5This is a backport of the `concurrent.futures`_ standard library module to Python 2.
6
7It should not be installed on Python 3, although there should be no harm in doing so, as the
8standard library takes precedence over third party libraries.
9
10To conditionally require this library only on Python 2, you can do this in your ``setup.py``:
11
12.. code-block:: python
13
14    setup(
15        ...
16        extras_require={
17            ':python_version == "2.7"': ['futures']
18        }
19    )
20
21Or, using the newer syntax:
22
23.. code-block:: python
24
25    setup(
26        ...
27        install_requires={
28            'futures; python_version == "2.7"'
29        }
30    )
31
32.. warning:: The ``ProcessPoolExecutor`` class has known (unfixable) problems on Python 2 and
33  should not be relied on for mission critical work.
34
35.. _concurrent.futures: https://docs.python.org/library/concurrent.futures.html
36