Tuesday, May 08, 2012

Improving your code with modern idioms — Porting to Python 3 - The Book Site

Improving your code with modern idioms — Porting to Python 3 - The Book Site: "Lists in Python has a .sort() method that will sort the list in place. Quite often when .sort() is used is it used on a temporary variable discarded after the loop. Code like this is used because up to Python 2.3 this was the only bult in way of sorting."

'via Blog this'