Commit 62b1533b authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

Merge branch 'it4i-anselm'

parents eae599e8 04dc045b
Pipeline #5852 passed with stage
in 47 seconds
#!/usr/bin/env python
# nasledujici funguje v standardnim pythonu ale treba ne v defaultnim 2.7.5 na CentOSu
import multiprocessing
print multiprocessing.__version__
def f(x): return x*x
pool = multiprocessing.Pool(processes=4)
print, range(10))
#!/usr/bin/env python
# nasledujici funguje pouze pod multiprocess s podporou dill
import multiprocess
pool = multiprocess.Pool(processes=4)
print ( x: (lambda y:y**2)(x) + x, xrange(10)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment