style: make core comply with pep8-naming
This commit is contained in:
@@ -39,10 +39,10 @@ def fun(pipe, x):
|
||||
return fun
|
||||
|
||||
|
||||
def parmap(f, X):
|
||||
pipe = [Pipe() for x in X]
|
||||
def parmap(f, elements):
|
||||
pipe = [Pipe() for x in elements]
|
||||
proc = [Process(target=spawn(f), args=(c, x))
|
||||
for x, (p, c) in zip(X, pipe)]
|
||||
for x, (p, c) in zip(elements, pipe)]
|
||||
[p.start() for p in proc]
|
||||
[p.join() for p in proc]
|
||||
return [p.recv() for (p, c) in pipe]
|
||||
|
||||
Reference in New Issue
Block a user