> Thanks for the great suggestions! On a related note, is there no way to efficiently sort a python array?
>>> x = array('f', xrange(10000000)) >>> x.sort() --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /home/wbiesing/src/python-sort/<ipython console> in <module>() AttributeError: 'array.array' object has no attribute 'sort' >>> type(sorted(x)) <type 'list'> Seems like a common enough task, but no way to do it efficiently without scipy/numpy. -- http://mail.python.org/mailman/listinfo/python-list