On Fri, Dec 26, 2008 at 1:21 AM, prasad rao <prasadarao...@gmail.com> wrote:

> By the way how can I view the builtin code for sort method?

Look at the source - Objects/listobject.c - starting at the comment
"Lots of code for an adaptive, stable, natural mergesort."
http://svn.python.org/view/python/trunk/Objects/listobject.c?rev=67498&view=markup

The source also includes an interesting and detailed description of
the sort algorithm:
http://svn.python.org/view/python/trunk/Objects/listsort.txt?rev=51013&view=auto

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to