Sort

Edward C. Jones edcjones at erols.com
Wed Dec 6 16:45:46 CET 2000


Alex Martelli wrote:

> Faster for sorting a large list is a "Schwartzian Transform" approach:
>
>     auxlist = [ (x[2], x) for x in thelist ]
>     auxlist.sort()
>     thelist = [ x[1] for x in auxlist ]

What is a "Schwartzian transform"?

Ed Jones





More information about the Python-list mailing list