Dear Python developers,
The help(list) shows in a python console the following documentation
string for the list.sort() method.
sort(self, /, *, key=None, reverse=False)
| Sort the list in ascending order and return None.
|
| The sort is in-place (i.e. the list itself is modified)
(2, 'd'), (3, 'e')]
>>> L.sort(key=itemgetter(0), reverse=True)
>>> L = [(3, 'e'), (2, 'd'), (2, 'b'), (1, 'c'), (1, 'a')]
Should the tuples comparison is in this case, I thought, not be solely
based on the first tup
Dear All,
You are all completely right.
Sorry for the confusion.
Thank you all very much for putting my mind right about this issue.
Best Regards
Raymond Bisdorff
> On 30 Oct 2021, at 19:00, Tim Peters wrote:
>
> [Raymond Bisdorff ]
>> I fully agree with your point. By d