Python Integrated Parallel Pipeline EnviRonment: PIPPER

Stefan Behnel stefan_ml at behnel.de
Thu Feb 5 15:10:10 EST 2009


Kyle wrote:
> def do_call(x,y):
> 	print "Hello World", x, y, os.getpid()
> 
> if __name__ == '__pipper_main__':
> 	a_range = range( int(sys.argv[1]) )
> 	#pragma pipper_start
> 	for a in  a_range :
> 		for b in a_range :
> 			do_call(a,b)
> 	#pragma pipper_end

I'm not a big fan of comments that change semantics. Wouldn't a modified
'with' statement look better?

We have a couple of other syntax proposals in the Cython Wiki.

http://wiki.cython.org/enhancements/parallel

Stefan



More information about the Python-list mailing list