[issue8267] Tutorial section on dictionary keys recommends sort instead of sorted

Georg Brandl report at bugs.python.org
Fri Apr 2 11:40:46 CEST 2010


Georg Brandl <georg at python.org> added the comment:

I'm not sure about this; what is the advantage?  If you already have a list, calling .sort() on it is more efficient since it doesn't have to create a new list.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8267>
_______________________________________


More information about the Python-bugs-list mailing list