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 gpery
Recipients Dima.Tisnek, NeilGirdhar, alex, bls, dmtr, ericreynolds, flyingosprey, gpery, gregory.p.smith, jafo, josh.r, mark.dickinson, martin.panter, milko.krachounov, remi.lapeyre, rhettinger, tebeka, terry.reedy, wumpus, yselivanov
Date 2019-06-11.11:02:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560250934.0.0.432721759629.issue4356@roundup.psfhosted.org>
In-reply-to
Content
I opened a relevant PR, https://github.com/python/cpython/pull/11781.

I believe a key parameter is inferior to a comparison callback. The former is a specific case of the latter, and in my use case would force me to create another class to serve as a comparator for my objects, at which point I might as well wrap them and add __lt__.

Furthermore, I believe this is more in-line with similar standard functions in other languages such as C++ (std::sort), Java (PriorityQueue) or Rust (slice.sort_by).
History
Date User Action Args
2019-06-11 11:02:14gperysetrecipients: + gpery, rhettinger, terry.reedy, gregory.p.smith, jafo, tebeka, mark.dickinson, alex, milko.krachounov, dmtr, bls, martin.panter, Dima.Tisnek, yselivanov, NeilGirdhar, josh.r, ericreynolds, wumpus, remi.lapeyre, flyingosprey
2019-06-11 11:02:14gperysetmessageid: <1560250934.0.0.432721759629.issue4356@roundup.psfhosted.org>
2019-06-11 11:02:13gperylinkissue4356 messages
2019-06-11 11:02:13gperycreate