Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
concurrent/ | 22-Nov-2023 | - | 1,221 | 916 | ||
docs/ | 22-Nov-2023 | - | 745 | 435 | ||
futures.egg-info/ | 22-Nov-2023 | - | 78 | 65 | ||
.git | D | 01-Jan-1970 | 0 | |||
Android.bp | D | 22-Nov-2023 | 720 | 23 | 20 | |
LICENSE | D | 22-Nov-2023 | 2.3 KiB | 49 | 40 | |
MANIFEST.in | D | 22-Nov-2023 | 86 | 6 | 5 | |
METADATA | D | 22-Nov-2023 | 319 | 17 | 15 | |
MODULE_LICENSE_APACHE2 | D | 22-Nov-2023 | 0 | |||
NOTICE | D | 22-Nov-2023 | 2.3 KiB | 49 | 40 | |
OWNERS | D | 23-Nov-2023 | 205 | 5 | 4 | |
PKG-INFO | D | 22-Nov-2023 | 1.9 KiB | 53 | 41 | |
README.rst | D | 22-Nov-2023 | 1 KiB | 36 | 25 | |
crawl.py | D | 22-Nov-2023 | 2.4 KiB | 75 | 64 | |
primes.py | D | 22-Nov-2023 | 1.3 KiB | 51 | 41 | |
setup.cfg | D | 22-Nov-2023 | 143 | 12 | 8 | |
setup.py | D | 22-Nov-2023 | 1.4 KiB | 43 | 36 | |
test_futures.py | D | 22-Nov-2023 | 27.1 KiB | 805 | 628 | |
tox.ini | D | 22-Nov-2023 | 131 | 9 | 6 |
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