This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients cykerway, rhettinger, serhiy.storchaka, steven.daprano, tim.peters, xtreak
Date 2018-10-18.01:17:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539825452.5.0.788709270274.issue35010@psf.upfronthosting.co.za>
In-reply-to
Content
This comes up every few years, but that's about it.  Here's the iteration from 2 years ago:

https://mail.python.org/pipermail/python-ideas/2016-October/043039.html

Follow the thread.  It contains easy-to-use wrappers for both "do it in multiple simple passes" and "do it in one messy pass" approaches.  It's impossible for an implementation to guess in advance which will be faster - it depends on the data, which only the user can know about in advance.  There's nothing the implementation could do to improve O() behavior regardless.

If there were "real" demand for this, someone by now would have packaged those wrappers and made them available on PyPI.  Since that seems not to have happened, I agree with Raymond rejecting this idea for the core at this time.  There would be a higher-than-usual bar for that anyway, because the sorting code is already highly complex, and building in the wrappers would be a tedious, long-winded exercise in recoding in C what's _easily_ coded in Python already.
History
Date User Action Args
2018-10-18 01:17:32tim.peterssetrecipients: + tim.peters, rhettinger, steven.daprano, serhiy.storchaka, cykerway, xtreak
2018-10-18 01:17:32tim.peterssetmessageid: <1539825452.5.0.788709270274.issue35010@psf.upfronthosting.co.za>
2018-10-18 01:17:32tim.peterslinkissue35010 messages
2018-10-18 01:17:31tim.peterscreate