Language Enhancement Idea to help with multi-processing (your opinions please)

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Oct 14 11:48:35 EDT 2011


Carl Banks wrote:

> On Thursday, October 13, 2011 7:16:37 PM UTC-7, Steven D'Aprano wrote:
>> > What I would expect to happen that all statements within the ooo block
>> > may be executed out
>> > of order. The block itself waits till all statements are returned
>> > before continuing.
>> 
>> Why do you think this needs to be a language statement?
>> 
>> You can have that functionality *right now*, without waiting for a syntax
>> update, by use of the multiprocessing module, or a third party module.
>> 
>> http://docs.python.org/library/multiprocessing.html
>> http://wiki.python.org/moin/ParallelProcessing
>> 
>> There's no need for forcing language changes on everyone, whether they
>> need it or not, for features that can easily be implemented as library
>> code.
> 
> This goes a little beyond a simple threading mechanism, though.

The multiprocessing module is not a simple threading mechanism, and neither
are the libraries listed in the ParallelProcessing page.




-- 
Steven




More information about the Python-list mailing list