Skip to main content

conversion of scipy recipy from https://github.com/scipy/scipy-cookbook from python2 to python3

Project description

Acknowledgement to original python 2 of handythread in https://github.com/scipy/scipy-cookbook/blob/master/ipython/attachments/Multithreading/handythread.py

simple code snippet

from handythread import foreach

array_to_update = list(range(10))
def f(x):
    array_to_update[x] += 1
    print (x)
    time.sleep(0.2)
foreach(f,range(10))
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

handythread3-0.0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

handythread3-0.0.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page