On Mon, 15 Apr 2013 11:29:17 +1000, Chris Angelico wrote: > There are actually a lot of optimizations done, so it might turn out to > be O(n) in practice. But strictly in the Python code, yes, this is > definitely O(n*n).
In any event, Janssen should cease and desist offering advice here if he can't do better than that. -- http://mail.python.org/mailman/listinfo/python-list