Adding a Par construct to Python?

jeremy at jeremy at
Sun May 17 14:05:03 CEST 2009

>From a user point of view I think that adding a 'par' construct to
Python for parallel loops would add a lot of power and simplicity,

par i in list:

There would be no locking and it would be the programmer's
responsibility to ensure that the loop was truly parallel and correct.

The intention of this would be to speed up Python execution on multi-
core platforms. Within a few years we will see 100+ core processors as
standard and we need to be ready for that.

There could also be parallel versions of map, filter and reduce

BUT...none of this would be possible with the current implementation
of Python with its Global Interpreter Lock, which effectively rules
out true parallel processing.


What do others think?

Jeremy Martin

More information about the Python-list mailing list