My poor understanding is that the difference between `sorted(somelis t,
key=lambda x:...)` and `somelist.sort( lambda x,y...)` is that one
returns a new list and the other sorts in-place.
Does that mean that .sort() is more efficient and should be favored
when you can (i.e. when you don't mind changing the listish object)?
key=lambda x:...)` and `somelist.sort( lambda x,y...)` is that one
returns a new list and the other sorts in-place.
Does that mean that .sort() is more efficient and should be favored
when you can (i.e. when you don't mind changing the listish object)?
Comment