A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026983.html below:

companies data for sorting comparisons

[Python-Dev] RE: companies data for sorting comparisons [Python-Dev] RE: companies data for sorting comparisonsFredrik Lundh fredrik@pythonware.com
Sun, 28 Jul 2002 10:30:32 +0200
tim wrote:    

> A larger lesson:  even if Python gets a stable sort and advertises stability
> (we don't have to guarantee it even if it's there)

if we guarantee it, all python implementors must provide one.

how hard is it to implement a reasonably good stable sort from
scratch?

I can think of lots of really stupid ways to do it on top of existing
sort code, which might be a reason to provide two different sort
methods: sort (fast) and stablesort (guaranteed, but maybe not
as fast as sort).  in CPython, both names can map to timsort.

(shouldn't you be writing a paper on this, btw?  or start a sort
blog ;-)

</F>




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4