Sujet : Re: Why Python When There Is Perl?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacyDate : 22. Mar 2024, 04:00:43
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utiooa$2i1dd$2@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On 22 Mar 2024 01:58:50 GMT, rbowman wrote:
On Thu, 21 Mar 2024 06:23:45 -0000 (UTC), Lawrence D'Oliveiro wrote:
You didn’t notice that Python’s sorting functions allow you to specify
a callback function to define the sort key?
I make no claims to being a Python expert.
OK, but reading the docs
<
https://docs.python.org/3/library/functions.html#sorted> helps.