Message345220
| 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:14 | gpery | set | recipients:
+ 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:14 | gpery | set | messageid: <1560250934.0.0.432721759629.issue4356@roundup.psfhosted.org> |
| 2019年06月11日 11:02:13 | gpery | link | issue4356 messages |
| 2019年06月11日 11:02:13 | gpery | create |
|