Michael Spencer <[EMAIL PROTECTED]> writes: > This is roughly 30 times faster on my box than the general solution above
Good point. You could probably improve the generator version some (probably not 30x) by doing less list arithmetic and slicing though. I just wrote it the most straightforward way I could. You could probably speed up the nested-loops version somewhat too, by keeping track of the indices instead of doing all that list slicing. -- http://mail.python.org/mailman/listinfo/python-list