[Tutor] sorting algorithm

Steven D'Aprano steve at pearwood.info
Fri Mar 12 13:40:06 CET 2010


On Fri, 12 Mar 2010 11:04:13 pm C.T. Matsumoto wrote:

[snip 269 lines of quoted text]

> Thanks Jeff. Indeed when I kept the code as is and added a doubled
> element to the input list, it went into an infinite loop. For running
> the swap it doesn't matter if the elements are equal. Catching equal
> elements makes a recursive loop. As I found out when I tested it.

In future, could you please trim your quoting to be a little less 
excessive? There's no need to included the ENTIRE history of the thread 
in every post. That was about four pages of quoting to add five short 
sentences!


Thank you.



-- 
Steven D'Aprano


More information about the Tutor mailing list