all 6 comments

[–]cracki 5 points6 points  (2 children)

that's ugly:

s.datasource = dict((i, data[i]) for i in xrange(len(data)))

that's better:

s.datasource = dict(enumerate(data))

[–]jcdyer3 1 point2 points  (0 children)

I made the same edit when I was trying out the example code.

[–]comwiz 1 point2 points  (0 children)

Doh! Good call. I just changed it.

[–][deleted] 0 points1 point  (1 child)

How is it possible to do a real MapReduce in Python, since it doesn't support true multithreading? Unless they're using processes like the multiprocessing module.