[issue24715] Sorting HOW TO: bad example for reverse sort stability

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae1e55102449 by Raymond Hettinger in branch '3.5': Issue #24715: Improve sort stability example https://hg.python.org/cpython/rev/ae1e55102449 -- ___ Python tracker __

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2016-04-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2016-04-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba87f7f246e0 by Raymond Hettinger in branch '2.7': Issue #24715: Improve sort stability example https://hg.python.org/cpython/rev/ba87f7f246e0 -- nosy: +python-dev ___ Python tracker

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2016-01-03 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM, however I would also show the sorted output too. -- nosy: +ezio.melotti stage: -> commit review type: -> enhancement versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2015-07-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file40022/reverse_stablity.diff ___ Python tracker ___ _

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2015-07-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2015-07-25 Thread Jakub Wilk
New submission from Jakub Wilk: https://docs.python.org/3/howto/sorting.html#odd-and-ends gives the following example for reverse sort stability: >>> data = [('red', 1), ('blue', 1), ('red', 2), ('blue', 2)] >>> assert sorted(data, reverse=True) == list(reversed(sorted(reversed(data But he