# HG changeset patch # User paulb # Date 1189720935 0 # Node ID dfdd46d6e9a2d305e378acca503d42e82742a586 # Parent 643acf9a0427f21f8f7a156144da5ea68ef2da9c [project @ 2007-09-13 22:02:15 by paulb] Fixed the sequence given to pmap since it now behaves like map. diff -r 643acf9a0427 -r dfdd46d6e9a2 examples/PyGmy/ppygmy_pmap.py --- a/examples/PyGmy/ppygmy_pmap.py Thu Sep 13 22:01:39 2007 +0000 +++ b/examples/PyGmy/ppygmy_pmap.py Thu Sep 13 22:02:15 2007 +0000 @@ -370,9 +370,7 @@ total = self.width * self.height count = 0 - heights = [[h] for h in xrange(0, self.height)] - - for sy, row in enumerate(pprocess.pmap(self.render_row, heights, limit)): + for sy, row in enumerate(pprocess.pmap(self.render_row, xrange(0, self.height), limit)): for sx, col in enumerate(row): draw.point((sx,sy),fill=(col.x*255,col.y*255,col.z*255)) count = count + 1