sorting dictionary keys?

Serge Orlov sombDELETE at pobox.ru
Sat Nov 29 23:35:35 CET 2003


> <rant>
> Which is one of the main PITA in Python IMHO :(
> (not the fact that it sort in place, the fact that it does not return self).
> </rant>

<hint>
def sort(lst):
    lst.sort()
    return lst
</hint>

-- Serge






More information about the Python-list mailing list