You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker 7ee447c011
v811_spc009_project
4 months ago
..
concurrent v811_spc009_project 4 months ago
docs v811_spc009_project 4 months ago
futures.egg-info v811_spc009_project 4 months ago
Android.bp v811_spc009_project 4 months ago
LICENSE v811_spc009_project 4 months ago
MANIFEST.in v811_spc009_project 4 months ago
METADATA v811_spc009_project 4 months ago
MODULE_LICENSE_APACHE2 v811_spc009_project 4 months ago
OWNERS v811_spc009_project 4 months ago
PKG-INFO v811_spc009_project 4 months ago
README.rst v811_spc009_project 4 months ago
crawl.py v811_spc009_project 4 months ago
primes.py v811_spc009_project 4 months ago
setup.cfg v811_spc009_project 4 months ago
setup.py v811_spc009_project 4 months ago
test_futures.py v811_spc009_project 4 months ago
tox.ini v811_spc009_project 4 months ago

README.rst

.. image:: https://travis-ci.org/agronholm/pythonfutures.svg?branch=master
  :target: https://travis-ci.org/agronholm/pythonfutures
  :alt: Build Status

This is a backport of the `concurrent.futures`_ standard library module to Python 2.

It should not be installed on Python 3, although there should be no harm in doing so, as the
standard library takes precedence over third party libraries.

To conditionally require this library only on Python 2, you can do this in your ``setup.py``:

.. code-block:: python

    setup(
        ...
        extras_require={
            ':python_version == "2.7"': ['futures']
        }
    )

Or, using the newer syntax:

.. code-block:: python

    setup(
        ...
        install_requires={
            'futures; python_version == "2.7"'
        }
    )

.. warning:: The ``ProcessPoolExecutor`` class has known (unfixable) problems on Python 2 and
  should not be relied on for mission critical work.

.. _concurrent.futures: https://docs.python.org/library/concurrent.futures.html