Adding a Par construct to Python?
Diez B. Roggisch
deets at nospam.web.de
Sun May 17 12:24:34 EDT 2009
> But reduce()? I can't see how you can parallelize reduce(). By its
> nature, it has to run sequentially: it can't operate on the nth item
> until it is operated on the (n-1)th item.
That depends on the operation in question. Addition for example would
work. My math-skills are a bit too rusty to qualify the exact nature of
the operation, commutativity springs to my mind.
Diez
More information about the Python-list
mailing list