Sort

Edward C. Jones edcjones at erols.com
Wed Dec 6 10:45:46 EST 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