Re:Improving your (Python) code with modern idioms
by probably on Tuesday May 08, 2012 @12:57AM
(#3942322)
And sorted() and reversed() behave differently (return different object classes) while mylist.sort() and mylist.reverse() do. In that way it's also confusing.
The modify-in-place method does seems more natural when you do want the destructive updating case.
The modify-in-place method does seems more natural when you do want the destructive updating case.