Possible Duplicate:
About python’s built in sort() method
Which of the sorting algorithms does the sort() method use to sort a list of numbers? How can I prove it?
seq = list_of_numbers
seq.sort()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It uses TimSort, an algorithm developed for Python by Tim Peters (of Zen of Python fame).
It is a hybrid of Merge and Insertion sort, and now also in use in Java and Android. The Python source code includes a more detailed description. You’ll find the implementation in the
listobject.cC source.