Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97005 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2015-09-23 09:06 +1000 |
| Last post | 2015-09-23 09:06 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: sort help Chris Angelico <rosuav@gmail.com> - 2015-09-23 09:06 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-09-23 09:06 +1000 |
| Subject | Re: sort help |
| Message-ID | <mailman.77.1442963207.28679.python-list@python.org> |
On Wed, Sep 23, 2015 at 9:02 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote: > On Tue, Sep 22, 2015 at 4:55 PM, Chris Angelico <rosuav@gmail.com> wrote: >> The Python list.sort() method is guaranteed to be >> stable. I can't find a comparable guarantee for sorted() > > https://docs.python.org/3.5/library/functions.html#sorted Right, sorry. Since all I looked at was its docstring, I should have said so :) So, yep, sorted() is guaranteed stable too, and that would be the easiest way to subsort something. ChrisA
Back to top | Article view | comp.lang.python
csiph-web