R. David Murray added the comment: If you use key=len, then what you get out is the items sorted by length. key determines *exactly* the test used to sort the input. "Stable" in a sort means that in the absence of the sort key differentiating the entries, they remain in the same order as in the input.
---------- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25792> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com